Please sign in to access this page
June 16, 2025
A custom programming language and compiler in Rust, written from scratch without LLVM. It compiles directly to Assembly.
That took a lot longer than whatever Hackatime is claiming, but I don't care, THE BUG IS FIXED! I wasn't calling NimMain() in my kernel, which is what initializes the runtime and stuff I was relying on. So instead of me getting something obvious, string interpolation with integers was messed up. Nothing else, just string interpolation with integers. Wow.
Below you can see a nice memory map table in the debug console though!
I finally got Nim to cross compile to a UEFI executable! This is going to be great for my bootloader, the issue was, Nim was trying to use headers from my system folder to compile, and the headers were stdio.h and stdlib.h. Since these are not host-independent, I had to implement dummy headers that were placed in the include path instead that just prototyped the functions needed, even though they all have a dummy implementation.
This was widely regarded as a great move by everyone.