Freestanding “Hello World” for OpenPower
github.com
github.com
I became intrigued because OpenPOWER finally makes little-endian PowerPC a first-class ecosystem. I decided to tinker around with getting some little-endian code running freestanding (i.e. as a “kernel”). Today the test environment is the Power8 Functional Simulator (http://www-304.ibm.com/support/customercare/sas/f/pwrfs/home...) and the skiboot firmware (https://github.com/open-power/skiboot).
The current result is https://github.com/andreiw/ppc64le_hello
The code hopefully answers some of the most basic questions that can arise while targeting or porting system software to PowerPC64 LE. In most cases I traded complexity for simplicity/crappiness, as it’s just a demo (and too long of a demo, I suppose).
Maybe some crazy guys will resurrect the Power(PC) port of ReactOS now ;-) (the original port was BE, which sort of defeated the purpose).
From a personal perspective, I think no one will ever willingly bother investing into converting code to become endian safe. Especially so when dealing with complex (or systems) software. It's a real shame that in the 21st century we can't settle on something so basic as byte order.