home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gcc / help / 2841 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.6 KB  |  42 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!nntp1.radiomail.net!fernwood!synergy!clark
  3. From: clark@synergy.encinitas.ca.us (John Clark)
  4. Subject: Re: Help! Embedded 68k gcc cross compiler on sparc. How?
  5. Message-ID: <1992Dec31.013035.15648@synergy.encinitas.ca.us>
  6. Organization: Synergy Microsystems, Inc. CA. USA
  7. References: <ByL930.EJ6@fmsrl7.srl.ford.com>
  8. Distribution: na
  9. Date: Thu, 31 Dec 1992 01:30:35 GMT
  10. Lines: 30
  11.  
  12. In article <ByL930.EJ6@fmsrl7.srl.ford.com> probert@fires1.srl.ford.com writes:
  13. +I need help, step by step, how to build a GCC 2.3.2 m68k cross compiler on my
  14. +SPARCstation II for an embedded target.  I also need to know what I have to do
  15. +with GAS and the GNU version of LD and AR to make assembling, compiling,
  16. +linking and libing all work smoothly.
  17.  
  18. The documentation that comes with gcc, binutils, and gas, do have discussions
  19. of how to set up a cross environment.
  20.  
  21. So briefly:
  22. assuming that there is a 'gcc' directory at some 'root point'. 
  23.  
  24. 1) create a 'gcc-m68k' directory, change to that directory and perform
  25. '../gcc/configure --host=sun4os4 --target=sun3os4' configuration operation.
  26. (the sun3os4 option will generate a compiler that generates m68000 code and
  27. assumes 'gas/sun as' assembler, and 'ld/gnu-ld' output).
  28.  
  29. 2) go through the make operations.
  30.  
  31. 3) get 'binutils-2.0' and create a 'ld-m68k', install it in
  32. '...../lib/gcc-lib/sun3os4/2.3.2/ld', so that it may be called by the cross
  33. compiler.
  34.  
  35. 4) go through a similar exercise for 'gas'.
  36.  
  37. 5) Oddly on a sun4, one can use some of the native tools to manipulate the
  38. 68k *.o's, since the 'ar' and 'nm' function just read symbol info they seem to
  39. be usable for these simple purposes.
  40.  
  41.  
  42.