title: What is the maximum size of static array that can be declared in GCC?
body: <p>How its determined ? Does this depend on the compiler/Architecture/Host system ?</p>
  
  <p>Example: </p>
  
  <pre><code>int array[0x8000000000000000]; 
  </code></pre>
  
  <p>For this line in a x86_64 bit system GCC outputs:</p>
  
  <pre><code>Error "size of array 'array' is too large".
  </code></pre>