Hey all!

I have a quick couple of questions about the implementation of malloc() and calloc() and the heap in the C toolchain.

First: is the heap/BSS block guaranteed to be 60 KiB regardless of other user files on the system, or is there a chance of running out of memory early?

Second: are malloc() and calloc() really awful in performance? I am not planning on using them much, only a few times every once in a while, but I don't want sudden frame time spikes.

Thank you for your time!
Yes. Yes. Just statically allocate.
Was waiting for that Mateo reply so I could take some notes...good question euphory.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement