home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / gcc / help / 1974 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  2.5 KB

  1. Path: sparky!uunet!newsserver.pixel.kodak.com!psinntp!internet!sbi!zeuswtc!aristotle!eric
  2. From: eric@picard.sbi.com (Eric Ho)
  3. Newsgroups: gnu.gcc.help
  4. Subject: Using djgpp-cross (Sparc -> i386).
  5. Message-ID: <ERIC.92Aug20174036@picard.sbi.com>
  6. Date: 20 Aug 92 21:40:36 GMT
  7. Sender: news@aristotle.sbi.com
  8. Distribution: gnu
  9. Organization: Salomon Brothers Inc.
  10. Lines: 55
  11.  
  12. Hi netlanders,
  13.  
  14. I recently got a copy of a set of GNU C/C++ cross-development tools,
  15. djgpp-cross, from math.utexas.edu, for Sparc (host) -> Intel 386 (target).
  16. [Thanks, jody@shell.com]
  17.  
  18. I now have several questions :-
  19.  
  20. ==========================================
  21.  
  22. 1). Must I to install these binaries, the include files and the libraries
  23.     under /usr/local/lib/gcc-lib/i386-ibm-bsd/ ?  If I put them (especially,
  24.     the include files and libraries) elsewhere, would binaries like xgcc be
  25.     able find them ?
  26.     
  27. 2). Why does xgcc always invoke gld with crt0.o in front of everything else ?
  28.     When I looked into the ld script, it invokes gld as 'gld -r $*'.  If I add
  29.     an echo(1) statement before actually calling gld, as in :-
  30.  
  31.     echo gld -r $*
  32.     gld -r $*
  33.  
  34.     I note that $* always have crt0.o at the front.
  35.  
  36.     The problem is that it is ok if you invoke gld at the same dir as where
  37.     crt0.o sits  otherwise, gld would complain that it couldn't open crt0.o.
  38.  
  39.     I've the suspicion that the scripts, ld and cross-gcc, are mere examples
  40.     which I should not follow literally.
  41.  
  42. 3). Should I use gcc-cross instead of xgcc ?  What is the difference between
  43.     them ?
  44.  
  45. 4). The readme file in the distribution mentioned that I need to install go32
  46.     on my PC.  What is go32 ?  And where can I get it ?
  47.  
  48. 5). The readme file also tells me that after running gld with the -r flag to
  49.     produce to relocatable, I should run ld.exe on that relocatable on the PC.
  50.     Does it mean that I should always call xgcc (or gcc-cross) with the -c
  51.     flag and then grind the resultant .o files through 'gld -r' and then send
  52.     the resultant file to the PC and run ld.exe there to produce an a.out ?
  53.  
  54.     If that's the case, where can I get the ld.exe for the PC ?  And how
  55.     should I run ld.exe -- e.g. what flags (or program if any) should I run it
  56.     with ?
  57.  
  58. ==========================================
  59.  
  60. My PC doesn't have any development tools whatsoever.  And it has very little
  61. disk space (so, even if I've the tools, they'll be useless anyway).  Sigh ..
  62.  
  63. Any pointers/info will be much appreciated.
  64.  
  65. I'll summarize everything (including my last posting - for getting
  66. djgpp-cross).
  67.