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

NIFC native development status #92

Open
9 tasks
Araq opened this issue Sep 29, 2024 · 1 comment
Open
9 tasks

NIFC native development status #92

Araq opened this issue Sep 29, 2024 · 1 comment

Comments

@Araq
Copy link
Member

Araq commented Sep 29, 2024

Todo:

  • check stack offsets and stack alignment; hint: we do not use a frame pointer
  • implement conv and cast operations
  • implement case statements
  • implement type specific arithmetic operations
  • implement copy instructions for struct assignments
  • the distinction between "compute address vs value" is not implemented correctly
  • implement constant folding
  • implement enums (might have been a mistake to add these to NIFC?)
  • probably: replace Win ABI by the System V ABI so that valgrind can check our mess

For inspiration how to implement these various features see:

https://github.com/rui314/8cc/blob/master/gen.c#L518
https://github.com/rui314/9cc/blob/master/gen_x86.c
https://github.com/rui314/chibicc/blob/main/codegen.c

@firasuke
Copy link

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

No branches or pull requests

2 participants