Mail Archives: djgpp/1993/01/15/14:57:45
I am having problems with the 16bit version of the GCC.EXE not
behaving the same as the 32bit version.
I am working on a 386.20Mhz PC with 4Mbyte of memory and 90Mbyte hard
disk. It is connected to a Novell server, which I using to hold
DJGPP1.09 and all my files. This means that my setup for DJGPP must
bring in the DJGPP directory as a Novell Search mapping, which in
this case works out as 'S:.' (The full stop is needed)
When I run a compile and link with a -l parameter, and the 32bit GCC,
I get the following result:
Reading specs from S:./lib/specs
gcc version 2.2.2
S:./bin/cpp.exe -lang-c -v -undef -D__GNUC__=2 -Dunix -Di386 -
D__unix__ -D__i386__ -D__unix -D__i386 -D__GO32__ -D__MSDOS__ -DGO32 -
DMSDOS -noprecomp call_add.c S:./tmp/cc000071.i
GNU CPP version 2.2.2 (80386, BSD syntax)
S:./bin/cc1.exe S:./tmp/cc000071.i -quiet -dumpbase call_add.c -
version -o S:./tmp/cc000071.s
GNU C version 2.2.2 (80386, BSD syntax) compiled by GNU C version
2.2.2.
S:./bin/as.exe -o call_add.o S:./tmp/cc000071.s
S:./bin/ld.exe S:./lib/crt0.o -LS:./lib -LS:./lib call_add.o -ldld -
lgcc -lc -lgcc
When I run it with GCC(16bit) the two entries "-LS:./lib" on the
ld.exe line are missing (I'lld like to show you, but the GO32 2r1
parameter doesn't work the same, so I can't redirect all the 16bit
version output to a file.) NOTE: The 16bit version DOES find crt0.o.
I haven't tried it on the harddisk because there isn't room for all
the software. At home, where I have a 486DX, I am using GCC(16bit)
all the time, under Version 1.08. I don't think either GCC changed
from 1.08 to 1.09.
Note: The example is TEST\ADD1\CALL_ADD.C from the port of DLD, with
libdld.a moved into the standard place for libraries.
I am reporting this, but the workaround is obvious - use the 32bit
GCC.
Cheers
John
---------------------------------------------------------------------
Dr John P. Fletcher
Department of Chemical Engineering and Applied Chemistry,
Aston University, Tel: (44) 21 359 3611 ext 4625
Aston Triangle, Email(Most systems): J DOT P DOT FLETCHER AT ASTON DOT AC DOT UK
BIRMINGHAM B4 7ET U.K. Email(JANET only): J DOT P DOT FLETCHER AT UK DOT ASTON DOT AC
---------------------------------------------------------------------
- Raw text -