Parent document is top of "comp.unix.aix Frequently Asked Questions (Part 4 of 5)"
Previous document is "2.28: How do I make my program binary executable on the POWER, POWER2, and POWERPC architecures?"
Next document is "2.30: How do I use POSIX threads with gcc 2.7.x?"
2.29: How do I access more than 256 Megabytes of memory?
By default each program gets one segment register (see 2.24) for its
data segment. As each segment register covers 256 MB, any calls to
malloc more will fail. Also programs that declare large global or static
arrays may fail to load. To allocate more segment registers to your
program, use the linker option -bmaxdata to specify the number of bytes
you need in the data segment as follows:
cc -o myprog -bmaxdata:0x20000000 myprog.c
The example above would allocate an additional segment register to allow
for 512MB of data.
Parent document is top of "comp.unix.aix Frequently Asked Questions (Part 4 of 5)"
Previous document is "2.28: How do I make my program binary executable on the POWER, POWER2, and POWERPC architecures?"
Next document is "2.30: How do I use POSIX threads with gcc 2.7.x?"