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

Windows support? #4

Open
nelsonxb opened this issue Jan 28, 2020 · 2 comments
Open

Windows support? #4

nelsonxb opened this issue Jan 28, 2020 · 2 comments
Labels
category:enhancement New feature or request priority:wanted This would be nice to have at some point

Comments

@nelsonxb
Copy link
Owner

If this happens, will probably target x64 only.

@nelsonxb nelsonxb added category:enhancement New feature or request priority:wanted This would be nice to have at some point labels Jan 29, 2020
@nelsonxb
Copy link
Owner Author

nelsonxb commented Jan 30, 2020

Unfortunately, this is basically going to require complete reimplementation. The Microsoft x64 calling convention is so fundamentally incompatible with the ELF x86_64 conventions used in the current implementation, that even something like using macros to shuffle registers would probably just result in an impossible-to-maintain mess.

Which might be just as well - it may make more sense to have a Windows implementation written for MASM, anyway.

@nelsonxb
Copy link
Owner Author

nelsonxb commented Jan 30, 2020

Okay, inline assembly in MSVC is actually kind of rad. TL;DR: the basic strategy I'm planning on using will be: OR I GUESS NOT, since apparently inline assembly is straight up not supported in MSVC for x64 😐

__asm {
 #include "green.win64.s"
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:enhancement New feature or request priority:wanted This would be nice to have at some point
Projects
None yet
Development

No branches or pull requests

1 participant