www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/04/19:31:26

Xref: news2.mv.net comp.os.msdos.djgpp:5671
From: dmicolet AT u-bourgogne DOT fr (Dominique Micollet)
Newsgroups: comp.os.msdos.djgpp
Subject: [Q] Length of static arrays
Date: 4 Jul 1996 13:42:18 GMT
Organization: Universite de Bourgogne - Dijon - France
Lines: 25
Message-ID: <4rghnq$6qd@tempo.univ-lyon1.fr>
NNTP-Posting-Host: satie.u-bourgogne.fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Trying to convince a friend of mine to use DJGPP, I try to compile the
following, in essai.c :
#include <stdio.h>
unsigned char Tableau[1024L*1024L*16L];

int main(int argc, char * argv[])
{
printf("hello world\n");
return(0);
}

(In french "Tableau" means "array", and "essai" means "try")

It compiles fine, but does not link : I got the folowing :
e:/miko/trash/essai.o : could not read symbols : Bad value.

If I reduce the size of the array to 1024*1024*15, the linking is OK.
So my question : is there a maximum length for a static array ?
Curiously my computer has 16 M of memory : is there a connexion ?

--
      Cordialement

* Dominique MICOLLET                           *
* Email   : Dominique DOT Micollet AT u-bourgogne DOT fr  *

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019