Menu:

CafePress

Ada Bare bones port

I have spent today taking my code from previous hello world kernel attempts and updating them as a port of the OSDev.org Bare bones tutorial. This is a work in progress at the moment as it is lacking the multiboot.ads package and also some more explanations on the various pragma's.

You can find the port at Ada bare bones on OSDev.org.

This port currently works for PC but I will be extending it for the Raspberry Pi board later one.

Another point to note, this is the smallest binary I've ever managed to create using GNAT, the unstripped ELF file stands at 15,629 Bytes, stripped it is 6200 Bytes and finally, when converted to a flat binary image it's 1035 Bytes. I think this should once and for all stop people saying that Ada produces large binaries.

admin
Comment
Thanks
Reply #2 on : Mon June 18, 2012, 21:02:05
Yeah, it's certainly not easy due to the language being as large and complex as it is. I mainly wanted it documented somewhere rather than doing it but keeping it secret.

Plus, by including Raspbery Pi as an initial target it can be used for educational purposes, maybe as university level for OS development courses.
Last Edit: June 18, 2012, 21:03:31 by admin  
Michael
Comment
Very nice!
Reply #1 on : Mon June 18, 2012, 20:35:25
I always wanted to play with kernels and Ada but didn't know where to start. This tutorial is exactly what I was looking for.
cheap online cigarettes to buy in the uk