gerdunne@eircom.net wrote:
Can someone please tell me how do I use 'AS' utility to cross compile a Pascal prog. to the MC68000 (S format..) I've read the html file on 'AS' and tried out the -m68000 switch but i must be doing something wrong? I'm using 'GPC.
`as' is only the assembler. To cross-compile, you need the compiler (gpc), assembler and linker (ld). You need to build all of them (the latter two are both part of `binutils') for cross-compiling since a single program always generates code for one target only. Please see the documentation for how to set them up for cross compiling (some options to configure etc.).
You'll also need the system libraries and their headers of the target system, unless you aren't going to use any library calls (i.e. in Pascal no RTS calls like WriteLn).
Frank