Date: 4 Jan 1994 09:56:28 U From: "jbabcock" Subject: RE: large array gives exception 13 during cc1 To: "djgpp list" , rjhe AT oce DOT nl The Intel databook describes exception 13 as a general protection fault. I have no idea how the array processing works, but I expect that some allocated table or segment is written past it end point. This would cause a protection fault if the write is outside the limits of the memory block in the descriptor. -Jim. _______________________________________________________________________________ To: djgpp AT sun DOT soe DOT clarkson DOT edu From: rjhe AT oce DOT nl on Tue, Jan 4, 1994 3:39 AM Subject: Re: large array gives exception 13 during cc1 Yesterday I wrote about a crashing compiler with large arrays (exception 13). I did not receive any replies, which may be because of strange things happening with our mailer sw (?). Anyway, the problem is still there, so if anyone knows anything about these kind of problems, please reply to rjhe AT oce DOT nl An additional question to the questions in my original mail (which you can find below): what is an exception 13? Thanks, Rob Hegt -------------------------------------------------------- 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). Maybe someone wants to try this out with 1.11? Here are the relevant settings: djgpp v1.09 set GCC=c:/djgpp set COMPILER_PATH=c:/djgpp/bin set C_INCLUDE_PATH=c:/djgpp/include set CPLUS_INCLUDE_PATH=d:/djgpp/cplusinc;c:/djgpp/include set OBJC_INCLUDE_PATH=c:/djgpp/include set OBJCPLUS_INCLUDE_PATH=c:/djgpp/include set LIBRARY_PATH=c:/djgpp/lib set TMPDIR=c:/tmp set GO32TMP=c:/tmp set GO32=ansi emu c:/djgpp/emu387/emu387 driver c:/djgpp/contrib/libgrx/drivers/stdvga.grn gw 640 gh 480 C: has appr. 25 MB of free space.