You know if linux is always going to overcommit memory so that the
malloc family never returns NULL then maybe gcc should have an
optimization option to prune execution branches that rely on their
failure.
I know of course that you'd be mad to use the option, especially to
create binaries to give to others who might have overcommittment
turned off now or in the future, but it would be amusing to see what
sort of a difference it makes size/speed wise (not a lot Id guess,
but could be fun)
Possibly already supported in some form or other ?
C.
--
Herein are personal opinions, you'd want to be crazed to consider
these official positions of StarOffice/Sun or even vaguely congruent.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!