Mail Archives: djgpp/1994/01/04/09:09:07
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 -