Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 64-bit Windows support #9

Open
vtereshkov opened this issue Feb 28, 2020 · 0 comments
Open

Add 64-bit Windows support #9

vtereshkov opened this issue Feb 28, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@vtereshkov
Copy link
Owner

Using a 64-bit code generator would make it very easy and 'natural' to implement Double and Int64 types.

Nevertheless, besides obvious changes in instruction prefixes, pointer sizes and PE header flags, the following difficulties are to be expected:

  • No push instruction for 64-bit immediate values even in the 64-bit mode
  • The stdcall calling convention has been replaced with fastcall in 64-bit Windows API, with the first four arguments passed via registers, all others via the stack.
  • Compiler source compatibility with Delphi/Free Pascal is questionable.
@vtereshkov vtereshkov added the enhancement New feature or request label Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant