View Single Post
Old 22 September 2019, 22:15   #1
sparhawk
Registered User

sparhawk's Avatar
 
Join Date: Sep 2019
Location: Essen/Germany
Age: 51
Posts: 205
Handling dynamic memory allocations

Programming for a classic Amiga is quite different than on more modern machines. Obviously memory size plays a much stronger role, because of the more limited memory and of course thetr is also the issue of differentiating between chip and fast memory.

So when using a toolchain like gcc, how do you tackle the problem? Do you avoid using std containers? Vector is rather useful but the standard implementation is probably a bit problematic when writing more complex programs. I did some test and when I was using the std::string class the size of my executable was jump from 20kb to whooping 170kb, which is quite a lot.
So I assume that I have to do my own memory handling and avoid using the std containers? Or how do you deal with that?
sparhawk is offline  
 
Page generated in 0.04560 seconds with 11 queries