Page 4 of 4

Re: Languages for standalone

Posted: Sat Nov 21, 2020 8:48 am
by eekee
You know, if SamDengmar was trolling, he was certainly successful in this thread! :lol: I'll start a new thread for stack-free C a bit later.

Re: Languages for standalone

Posted: Sat Sep 04, 2021 3:32 am
by BigBuda
bzt wrote: but if your code avoids OOP (no exceptions, no new/delete calls, no streams etc.), you can get away with it.
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]

Besides, placement new can easily be made to work which actually rather useful for a lot of stuff while doing low level development.