potatoCode
May 23rd, 2008, 07:18 PM
Hello guys,
I have a question about the memory space.
Q1. Let's say I have a program that has 1 million of integer variables on 32-bit machine,
my understanding is this: 4 bytes * 1M = 4Mbs, and that at least 4Mbs of the machine's memory is taken by the programm, is this correct?
Q2. How do you figure out (in the begining part of the program design) the total memory usage?
Q2. I remember something about conventional and extended memory... (from the old days), is this still true? (I'm not quite sure what I'm asking here...)
thanks for the help!
I have a question about the memory space.
Q1. Let's say I have a program that has 1 million of integer variables on 32-bit machine,
my understanding is this: 4 bytes * 1M = 4Mbs, and that at least 4Mbs of the machine's memory is taken by the programm, is this correct?
Q2. How do you figure out (in the begining part of the program design) the total memory usage?
Q2. I remember something about conventional and extended memory... (from the old days), is this still true? (I'm not quite sure what I'm asking here...)
thanks for the help!