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

Linux build script and some platform code fixes for Linux. #60

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mcourteaux
Copy link

This is a minimal PR because I was holding off on doing more, as I'd like to ask first before pouring the work in. I had some issues:

  • the trick with #pragma comment (lib, "....") needs the .a extension on Linux. On macOS this is again going to be different. Would be nice if there is a cleaner way to do this for all platforms at once.
  • the ABI for System V is different, so I was wondering how to deal with those different calling conventions in terms of files. I could create a listing_...._linux.asm for all the listings that need translating (all I guess, as there is the Count and Buffer argument). Or is there a more clever trick or way to do this. I was looking into symbolic registers in nasm where you could use custom register names like "count" and "pointer", and then have them preprocessor-style be filled in with either "rsi", "rdi", "rdx", "rcx", depending on the calling convention. I don't know if nasm supports such things.

…rting changes to the repetition tester to make it more readable to me.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant