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