www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/13/11:36:33

Xref: news2.mv.net comp.os.msdos.djgpp:1081
From: jesper AT PROBLEM_WITH_INEWS_GATEWAY_FILE (Jesper Skovhus Thomsen)
Newsgroups: comp.os.msdos.djgpp
Subject: Problems with cc1.exe (djgpp v 2.0)
Date: 13 Feb 1996 09:38:20 GMT
Organization: Physics Department, DTU, Denmark
Lines: 39
Message-ID: <4fpm6c$an@news.uni-c.dk>
NNTP-Posting-Host: chaos.fys.dtu.dk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I have experienced a problem with djgpp v2.0! 
When compiling a 2000+ lines program the compiler simply locks the computer
up so only hitting the reset button will bring it back.

I got the djgpp from ftp.funet.fi that carries a mirror of oak.oakland.edu.

My system is a AMD dx4 100 with 20 Mb RAM and ~70Mb free disc space running
MS-DOS ver 6.20 with EMM386.

I have developed the program at work on a P90 with 16 Mb RAM using
djgpp v1.12m4 -- where no problems can be observed.

If I take some lines of code out of the program out I get:

General Protection Fault at eip=eb9fd; flags=3017
eax=00000000 ebx=000000ff ecx=00000000 edx=00000002 esi=00000000 edi=000000ef
ebp=000ecfe4 esp=00003390 cs=e7 ds=ef es=ef fs=cf gs=ff ss=33 error=bbb8

If more lines of code is taken out the program will compile OK.
Notice that the lines of code that I take out can be any lines -- so it
seems to be related to the size of the code more than a bug in the 
source code.

BTW it is cc1.exe that gives the GPF -- the CPP seems to give the correct
result, and I didnt use any optimization flags during compilation.

In order to test if cwsdpmi had anything to do with the GPF I booted OS/2
and tried to compile the program in a DOS box (which I had provided with
16 Mb of DPMI memory) and exactly the same thing happened -- although
OS/2 seems to trap the GPF. 

I have used djgpp since ver 1.07 and have never seen the compiler giving
errors before.

So my question is now: "what have I done wrong?"
Any help is appreciated.

Jesper Skovhus Thomsen
jesper AT chaos DOT fys DOT dtu DOT dk

- Raw text -


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