4 ms·
Other commenters beat me to the first two examples, though there's more. GoFY (which hilariously I'm a contributor on) was probably the closest analogy; it boo
by aray 13y ago
Other commenters beat me to the first two examples, though there's more.
GoFY (which hilariously I'm a contributor on) was probably the closest analogy; it booted on x86. Russ Cox's did as well, but it was removed from the go tree years ago when it bitrotted.
Really it boils down to 1) custom linker scripts/targets and 2) a custom "OS" target that emulates syscalls/etc
I've done it a couple times (on ARM-based embedded devices), I end up throwing it out every time. Should get a proper writeup I suppose.
- dbaupp 13y agoHm, those two seem vastly more complicated, with extra C and ASM rather than just plain Go.