View Single Post
Old 23 September 2019, 13:08   #6
sparhawk
Registered User
 
sparhawk's Avatar
 
Join Date: Sep 2019
Location: Essen/Germany
Age: 55
Posts: 463
Quote:
Originally Posted by Bruce Abbott View Post
And the problem is?

It depends. An Amiga 1000 has (usually) 512kb, which is not much. Fresh from the factory it even has only 256kb but I guess that not many people actually use it as such.


So developing a game I would think that I rather use the memory for gfx and sound instead of io routines.


Anyway, I was just experimenting, to see how much overhead certain things will add. For example, using "new" instead of "malloc" also adds 70kb of additional size, which I also didn't expect.
When I created a barebone binary it had about 350bytes, using "printf" it increases to 20kb, which is IMO acceptable, because it's needed for debugging purposes. string functions are convenient, but considering the overhead I wouldn't use them for game code.


Quote:
Originally Posted by bebbo View Post
* don't use iostreams
* and if you don't use exceptions add -fno-exceptions

Does "no-exception" disable any exception or only prevents the standard functions not throwing?
So when I throw and catch within my own code, this would still work, or is it also disabled?
sparhawk is offline  
 
Page generated in 0.09485 seconds with 11 queries