delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/04/09:09:07

From: Nigel Stephens <nigel AT algor DOT co DOT uk>
Date: Tue, 4 Jan 94 13:13:53 GMT
To: rjhe AT oce DOT nl
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: large array gives exception 13 during cc1

rjhe AT oce DOT nl writes:
 > 
 > I am trying to compile a file which only contains an image of 640x480 bytes:
 > 
 > unsigned char image[] = {
 >   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 >   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 >   ...
 >   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
 >   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
 > };
 > 
 > Well, this isn't the actual image, but i guess that doesn't matter. The
 > problem is, that the compiler crashes in the cc1 stage, with an exception
 > 13 (0x0d).
 > Is there a known problem with large arrays, and is there a solution for my
 > problem?
 > 
 > I am still using version 1.9, because I am in the middle of a project and
 > don't want to switch to 1.11 (I will if it solves my problem).

The problem is with gcc.  Prior to version 2.5.x it would convert the
whole array into internal RTL form before spitting it out again as
assembler statements.  I believe that in 2.5.x it now does this one
element at a time, and so DJGPP 1.11 shouldn't have this problem.

--------------------
Nigel Stephens
Algorithmics Ltd		Email:	nigel AT algor DOT co DOT uk
3 Drayton Park			Home:	nigel AT mildmay DOT demon DOT co DOT uk
London				Phone:	(+44) (0)71 700 3301
N5 1NU				Fax:	(+44) (0)71 700 3400
England

- Raw text -


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