[ Usenet FAQs | Web FAQs | Documents | RFC Index ]
    Search the FAQ Archives

Part1 - Part2 - Part3 - Part4 - Part5 - Single Page

Top Document: comp.unix.aix Frequently Asked Questions (Part 4 of 5)
Previous Document: 2.28: How do I make my program binary executable on the POWER, POWER2, and POWERPC architecures?
Next Document: 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.



Top Document: comp.unix.aix Frequently Asked Questions (Part 4 of 5)
Previous Document: 2.28: How do I make my program binary executable on the POWER, POWER2, and POWERPC architecures?
Next Document: 2.30: How do I use POSIX threads with gcc 2.7.x?

Part1 - Part2 - Part3 - Part4 - Part5 - Single Page


[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
bofh@mail.teleweb.pt (Jose Pina Coelho)

Last Update October 22 2009 @ 05:22 AM

Some parts © 2009 Advameg, Inc.