home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os9 / 1573 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  2.5 KB

  1. Path: sparky!uunet!haven.umd.edu!umd5!roissy.umd.edu!mark
  2. From: mark@roissy.umd.edu (Mark Sienkiewicz)
  3. Newsgroups: comp.os.os9
  4. Subject: Re: OS9 Cross Development
  5. Message-ID: <17824@umd5.umd.edu>
  6. Date: 6 Jan 93 23:24:51 GMT
  7. References: <1993Jan6.200439.16621@dale.ksc.nasa.gov>
  8. Sender: news@umd5.umd.edu
  9. Organization: University of Maryland
  10. Lines: 43
  11.  
  12. In article <1993Jan6.200439.16621@dale.ksc.nasa.gov> chc@orion.ksc.nasa.gov (Charles Curley) writes:
  13. >(Finally the question) Has anyone out there created a cross-development
  14. >environment totally with GNU tools?  I know that gcc will generate code for
  15. >other than the system it is running on, but I am not sure how to accomplish
  16. >this.
  17.  
  18. GCC has a bunch of configuration files that tell it how to generate code.
  19. There are a few obvious (or not? :) gotcha's, such as:  Last I heard, GCC
  20. uses the native floating point format that the system it is running on uses.
  21. If this is different from the target system, you could have trouble.  If both
  22. machines do IEEE you are probably ok.  You'll have to look for other stuff
  23. like this.
  24.  
  25. > Assuming this is all I have to do, how
  26. >would I get libraries from my OS-9 machine into somekind of linkable state?
  27.  
  28. When running GNU ld on System V Unix, you use a program called "Robitussin"
  29. ("COFF medicine" :) that converts COFF object files into BSD object files.
  30. You could do one similar for OS9 if you can find the format of .r files
  31. somewhere.
  32.  
  33. You might run into problems with position independent code-- I don't know
  34. that GNU ld does this or not.
  35.  
  36. You could also let GCC generate assembly code and let your EXISTING 
  37. cross-assembler and cross-linker make the modules.  That way you get a
  38. good compiler without having to do all the assembler/linker support.  But 
  39. when you do this, GCC doesn't know how to generate debugging information
  40. for your non-GDB debugger.  Whether this is a problem depends on how much
  41. you like debuggers.  (e.g. I don't have a *useful* OS9 debugger, therefore
  42. I wouldn't miss having one.)
  43.  
  44. >Is is legal for me to copy the libraries my OS-9 machine to use on another
  45. >machine?  Could I use the ones that came with Unibridge instead?
  46.  
  47. The libraries for your cross-compiler are already licensed for the machine
  48. you are using them on.  Usually the license says you can't disassemble them,
  49. but I doubt that it says you can't compile them into your program. :)
  50.  
  51. The libraries on your OS9 machine are licensed for that machine, but you
  52. may have many OS9 licenses (I have more than I'm using) or the license itself
  53. may have terms about what you want to do.
  54.  
  55.