Article View: gnu.gcc.help
Article #333Using djgpp-cross (Sparc -> i386).
From: Eric Ho
Date: Thu, 20 Aug 1992 21:40
Date: Thu, 20 Aug 1992 21:40
55 lines
2624 bytes
2624 bytes
Hi netlanders,
I recently got a copy of a set of GNU C/C++ cross-development tools,
djgpp-cross, from math.utexas.edu, for Sparc (host) -> Intel 386 (target).
[Thanks, jody@shell.com]
I now have several questions :-
==========================================
1). Must I to install these binaries, the include files and the libraries
under /usr/local/lib/gcc-lib/i386-ibm-bsd/ ? If I put them (especially,
the include files and libraries) elsewhere, would binaries like xgcc be
able find them ?
2). Why does xgcc always invoke gld with crt0.o in front of everything else ?
When I looked into the ld script, it invokes gld as 'gld -r $*'. If I add
an echo(1) statement before actually calling gld, as in :-
echo gld -r $*
gld -r $*
I note that $* always have crt0.o at the front.
The problem is that it is ok if you invoke gld at the same dir as where
crt0.o sits otherwise, gld would complain that it couldn't open crt0.o.
I've the suspicion that the scripts, ld and cross-gcc, are mere examples
which I should not follow literally.
3). Should I use gcc-cross instead of xgcc ? What is the difference between
them ?
4). The readme file in the distribution mentioned that I need to install go32
on my PC. What is go32 ? And where can I get it ?
5). The readme file also tells me that after running gld with the -r flag to
produce to relocatable, I should run ld.exe on that relocatable on the PC.
Does it mean that I should always call xgcc (or gcc-cross) with the -c
flag and then grind the resultant .o files through 'gld -r' and then send
the resultant file to the PC and run ld.exe there to produce an a.out ?
If that's the case, where can I get the ld.exe for the PC ? And how
should I run ld.exe -- e.g. what flags (or program if any) should I run it
with ?
==========================================
My PC doesn't have any development tools whatsoever. And it has very little
disk space (so, even if I've the tools, they'll be useless anyway). Sigh ..
Any pointers/info will be much appreciated.
I'll summarize everything (including my last posting - for getting
djgpp-cross).
Technical Details
Message-ID:
<ERIC.92Aug20174036@picard.sbi.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!newsserver.pixel.kodak.com!psinntp!internet!sbi!zeuswtc!aristotle!ericShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!newsserver.pixel.kodak.com!psinntp!internet!sbi!zeuswtc!aristotle!eric From: eric@picard.sbi.com (Eric Ho) Newsgroups: gnu.gcc.help Subject: Using djgpp-cross (Sparc -> i386). Message-ID: <ERIC.92Aug20174036@picard.sbi.com> Date: 20 Aug 92 21:40:36 GMT Sender: news@aristotle.sbi.com Distribution: gnu Organization: Salomon Brothers Inc. Lines: 55