Re: Languages for standalone
Posted: Sat Nov 21, 2020 8:48 am
You know, if SamDengmar was trolling, he was certainly successful in this thread! I'll start a new thread for stack-free C a bit later.
The Place to Start for Operating System Developers
https://f.osdev.org/
All of these can be implemented. For exceptions, there is an ABI that says how to do it. new and delete can be overridden even by a hosted application, never mind a freestanding one, and streams are just a library you can implement. I personally don't see the point, but you can. If you are willing to stray outside the bounds of the standard, then you can use some GCC options to prevent the use of exceptions and RTTI, to reduce the amount needed for the run-time library.[/quote]bzt wrote: but if your code avoids OOP (no exceptions, no new/delete calls, no streams etc.), you can get away with it.