On Wed, 25 Aug 1999, Burak Serdar wrote:
|Berkeley Hynes wrote:
|
|> What is the standard behaviour of a compiled C program which declares an
|> array which is too big given the system's available memory?
|>
|> Whenever I use dynamic memeory I always test for malloc's error codes,
|> but it occurred to me that I don't test anything to make sure an array
|> has been properly allocated. Should I be testing something?
|>
|> Thanks in advance,
|>
|> Berkeley Hynes
|> [EMAIL PROTECTED]
|
| The system should not be able to load the program if it does not fit into
|memory. If the program is running, it means that all the static variables
|are 'allocated'.
AFAIK the memory is virtually allocated, not physically. Real allocation
takes places, when the memory is used. Am I wrong?
Michael.
--
Michael Eyrich, PRZ, TU-Berlin
[EMAIL PROTECTED]