>>>>"BP" == Bryan Parkoff <no****@nospam.comwrites:
BP I want to know how much static memory is limited before
BPexecution program starts.
This is system-specific. It definitely varies based on hardware and
operating system, and may also vary by compiler even when the hardware
and operating system are the same.
BPThe dynamic memory may be the option. The malloc() function
BPcan test to determine if allocated memory is available at
BPrun-time. Then, use I/O like fopen() and fclose() functions
BPto read data from the hard drive and store it into RAM. The
BPerror message can display at run-time if malloc() tests to
BPtell insufficient memory. Please give me your advice.
In theory, sure. In practice, not so much. Some environments may
restrict the amount of memory you have available (such as per-process
limits in BSD); others may tell you there is memory available when
there is not (such as overcommitting in Linux).
My advice is to figure out what problem you are *really* trying to
solve and to solve that problem instead.
Charlton
--
Charlton Wilbur
cw*****@chromatico.net