Space invaders clone that runs on the bare metal (Multiboot compiliant demo)
erikyyy.de/invaders/Posted Sep 4, 2007, 6:08 PM UTC
Posted Sep 4, 2007, 6:08 PM UTC
[removed]
I think "bare" metal is the wrong term. As far as I could tell, it looked like an operating system that instead of "typical" operating system that launches process (eg, Linux), it is an operating system that runs a space invaders clone.
"bare metal" is a pretty common term that just means there is no operating system sitting between the program and the computer hardware. Think of it as a qualifier on the target platform. Thus, instead of "Linux, x86" or "Windows, x86" it is "x86, bare metal".
hmm. It seems like a horrible term. First, it looks he is using "C" and gcc assembly. So, even before it is compiled to the actual binary code on the " bochs floppy device", gcc is going to do optimizations and what-not.
http://en.wikipedia.org/wiki/Bare_metal
And then whatever cpu you are using "intel", "amd" are doing so many things that "mov $3, eax" is not just that. There is caching and all kinds of other stuff. (especially with the dual cores coming out).
To me, writing your program to ROM to a micro controller device is writing to bare metal. You have to actually burn your program onto the controller. You might have to actually solder your 8 bit output to some hardware device.
I am sorry, after being on reddit, I am becoming a grammar nazi.
Well, of course you could always run your "bare metal" program on top of Bochs and not even have a real x86 cpu in your computer.
Yes, it uses some poetic license, but it's just a figure of speech. Don't over think it.
Plus, the chips probably aren't made of metal but silicone or whatever it is they are using.
At least we don't have to worry about it being a trojan, it is from Germany, land of no-hacking-tools.
Same guy did Tempest for Eliza, brilliant fellow.
His homepage is hilarious:
Just noticed that he's also the author of compilercache, the precursor to ccache. Smart guy!