-
Notifications
You must be signed in to change notification settings - Fork 52
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
Feature: Compile to standalone x86_64 code for bare metal. #251
Comments
Interesting, and not too far-fetched. Currently the compiler can produce ELF and Mach-O x86-64 binaries. In both cases, the compiler inserts only a little bit of startup asm code, and the rest of the runtime system and GC is written in Virgil. There are a handful of syscalls in the compiler-inserted asm code to set up signal handling and the stack, but the rest is in Virgil using |
Maybe add an asm running command like rust's asm!(). |
I'm interested in this as well. I've been developing a kernel in Nim, but I'm always on the lookout for interesting system programming languages. I'd love to give Virgil a try, but without official bare metal support it would be hard. Things I look for in a language to support kernel programming:
Nice to have:
I'm pretty sure I forgot other things, but that would be a good start. |
If possible, could you attempt to implement this feature. It would make Operating System Development much easier.
The text was updated successfully, but these errors were encountered: