>You haven't even begun the OS yet?
I made a small bootloader/kernel for raspi 4 based on this:
github.com/isometimes/rpi4-osdev/tree/master/part5-framebuffer
But using the raspi 4 as my daily driver and trying to do bare metal with it at the same time was a pain in the ass so I ordered a DevTerm kit and an extra RISC-V core.
>What language are you planning to write it in, C or asm? And which assembler/compiler?
I'm making my own compiler and my own assembler. I've made a few interpreted languages before, and a couple compiled ones, but I always made my compilers with a compiler compiler. Consequently I felt my knowledge was superficial so I started working through this book:
usa1lib.org/book/6153326/368d38
The language will be C-esque. My plan is to literally have it spit out an assembly code file that needs to be fed to an assembler. I've never made an assembler before but I found this to study:
github.com/lwiest/Atari6502Assembler
I should have some time because the Clockwork Pi has 60 business days of ship time away.
>I spent a few hours figuring out how to be able to build the image from multiple files since before I was building it from a single big C file but that was becoming unmanageable.
>It works but I get weird erratic errors, for example sometimes arguments aren't passed correctly when calling other files, extern variables aren't actually shared between files, etc.
Can I look at your source? I will try to solve your bug in hopes of learning more about low level. What machine are you targeting?
>I wonder it it's bugs in gcc or I am doing something stupid.
gcc is a good compiler. This stuff is just hard. If it wasn't github would have as many copy-paste kernel experiments as it has copy-paste Angular bootcamp capstone projects.
>Still haven't gotten to disk IO, not sure how I am going to do that.
I haven't gotten that far but I will look through my sources and see if I have anything helpful.
Attached: z6nlbanzxzy61.png (800x1236, 795.18K)