how to make use of more memory on HP-UX when comiling with gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I know this is trivial for many of you but I have no clue. I am trying to run a program compiled with gcc under HP-UX. The machine is supposed to have 32G main memory. My program is a very simple C program that reads two arrays (doubles) into memory (I am using malloc for the array) the size of each array is about 700K rows*124 columns. If I compile it with MS C in a windows environment I can make use of all available memory for the machine so in my PC with 2Gb I have no problems in running it. When  compiling it and running it in the HP-UX environment I cannot get enough memory for both arrays. I used "gcc program.c -O -N -lm -o program" (If I don't use the -N option it gets even worst.). Is there a way to compile (maybe I am missing something with -N or some other directive for gcc) that will allow me to make use of all available memory ???
I have gcc version 4.1.0

Any help will be much appreciated.

Thanks a lot Cesar.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux