title: How to compile a program to make it capable to use >4GB memory on 32-bit Linux?
body: <p>The whole code is written in C, C++, and Fortran. 
  Is it possible to make it to use more than 4GB memory.
  Now it is always crashed when it reaches 3GB memory.</p>
  
  <p>If it is possible, how to set up the compiling options (or configure flags)?</p>
  
  <p>We can use gcc, g++, ...or intel compilers</p>
  
  <p>our OS: Fedora 12 x32</p>
  
  <pre><code>cat /proc/cpuinfo
  flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm tpr_shadow vnmi flexpriority
  bogomips : 5319.72
  clflush size : 64
  cache_alignment : 64
  address sizes : 36 bits physical, 48 bits virtual
  </code></pre>