for dev c++ 4 is there a memor max. if so wut is it. and do u think it should be something i should be really careful about? or jsut make sure i dont waste mem all the time
for dev c++ 4 is there a memor max. if so wut is it. and do u think it should be something i should be really careful about? or jsut make sure i dont waste mem all the time
The memory max should be the total of what the computer have in RAM and windows swap... if you wanna test, make a program that loops and allocates more memory every loop, the program will stop when you run out of memory... use the task mamager to see how much you have allocated. i can allocate about 2 gig of memory on my computer...
You probably mean the stack size. If you use a computer with an x86 architecture then the limit is 64Kbytes because that's the size of one segment and you can't go past it. On other computers the stack will grow as needed. But there's also virtual memory on any decent architecture, so most of the time you don't have to worry about running out of memory unless you do something dumb like cause a massive memory leak.
> If you use a computer with an x86 architecture then the limit is 64Kbytes
Only if it's running real DOS (the 16 bit variety)
Win32 and protected mode DOS programs (eg those written with DJGPP) do not have this limit.
> and do u think it should be something i should be really careful about?
Careful yes, but not to the point of being paranoid about it.
There are plenty of dumb things you can do to waste memory though
How did they manage to remove the limit in Win32 and protected mode?
> How did they manage to remove the limit in Win32 and protected mode?
By using ESP everywhere instead of SP
Gets you a 32 bit address space to play in, thus allowing you to have very large stacks
thanks crimpy thats what i meant, and thatnks salem. ur helped helped me wiht somethgin else.