c++ - Is the HEAP a term for ram, processor memory or BOTH? And how many unions can I allocate for at once? -
i hoping had schooling lay down whole heap , stack ordeal. trying make program attempt create 20,000 instances of 1 union , if day may want implement larger program. other current project consisting of maximum of 20,000 unions stored ever c++ allocate them think anti millions while retaining reasonable return speed on function calls, approximately 1,360,000 or so? , how think handle 20,000?
heap area used dynamic memory allocation.
it's used allocate space variable collection size, and/or allocate large amount of memory. it's not cpu register(s).
besides think there no guarantee heap is.
this may ram, may processor cache, hdd storage. let os , hardware decide in particular case.
Comments
Post a Comment