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

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!wupost!csus.edu!netcom.com!jimlynch
  3. From: jimlynch@netcom.com (Jim Lynch)
  4. Subject: Cross compiling problem
  5. Message-ID: <1992Dec26.225723.2219@netcom.com>
  6. Followup-To: gnu.gcc.help jimlynch@netcom.com deutsch@lagrange.Math.ColoState.EDU
  7. Summary: What's the specific process, what's the NeXT's binary format
  8. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  9. Date: Sat, 26 Dec 1992 22:57:23 GMT
  10. Lines: 57
  11.  
  12. Hi, a fellow netter has sent me an inquiry which I answered to the best of my
  13. ability; I post the inquiry here with my reply asking for more specifics.
  14.  
  15. Re:  Creating gcc on a Next that was wiped out.
  16. Jesse Deutsch (deutsch@lagrange.Math.ColoState.EDU) asked:
  17. >>>>>
  18. How can one create gcc on a Next that died, was emptied
  19. and only a part of the operating system was reinstalled from
  20. another smaller Next?
  21.  
  22. We've lost manual pages and cc, among other things.
  23. Your help is appreciated.
  24. <<<<<
  25.  
  26. To which I (jimlynch@netcom.com) replied:
  27. >>>>>
  28. The way to do this is to build a cross compiler on some other machine. We
  29. will call this 'other' machine the "cross host".
  30.  
  31. You should now configure and build GAS and LD (as well as any other tools
  32. which operate on binaries suggested by the group) on the cross host and bring
  33. those binaries to the cross target.
  34.  
  35. Once you build the cross compiler, you should test it with the hello
  36. distribution by building it using the cross compiler, moving the resulting
  37. binaries to the cross target (your dormant NeXT in this case) and running
  38. the hello binary to see if it works. The reason for this is to make sure
  39. the binaries produced by the cross compiler are in the correct format for
  40. your machine. Once hello works, that means that the cross compiler is
  41. producing correct code.
  42.  
  43. The next step is to build the compiler using the cross compiler (sounds like
  44. double talk, don't it? :) on the cross host, again moving the resulting
  45. binaries to the NeXT. You would only need to build the C compiler at this
  46. point since that's the base language in which the compiler is written.
  47.  
  48. You should now configure and build GAS and LD (as well as any other tools
  49. which operate on binaries suggested by the group) on the cross host and bring
  50. those binaries to the cross target.
  51.  
  52. You should test this compiler by building the hello distribution and running
  53. it (all on the cross target.)
  54.  
  55. If this works, you should build the stage 2 compiler. This is already well
  56. documented. This will produce an optimised version of the compiler.
  57.  
  58. These are _very_ general instructions; you still need to find out how to
  59. physically accomplish each step. For this reason, I am posting your note
  60. along with my reply.
  61. <<<<<
  62.  
  63. I ask the group: Can you be more specific than I have been? Are there any
  64. other steps or any pitfalls to watch out for? I am asking this of people who
  65. have built cross compilers for any machine and of people who are familiar
  66. with the NeXT binary format.
  67.  
  68. -Jim "Thanks in advance" Lynch
  69.