How to change which assembler GCC uses
Geert Bosch
bosch@gnat.com
Thu Feb 1 15:55:00 GMT 2001
On Thu, 1 Feb 2001 23:40:18 +0000 (GMT), James Montgomerie wrote:
I am porting GCC to a platform on which there is already a [free :-]
assembler and linker. Currently, I'm just using gcc with -S to output
assembly and then running the assembler and linker manually.
I'm at the stage in development where I'd like to integrate the
launching of these programs with GCC, however they have a significantly
different command-line structure to their GNU equivalents on other
platforms. I can't find anywhere in the GCC documentation where it
says whee to change the linking//assembling command-line syntax for
a platform. Can someone point me in the right direction?
Some of this you can do by changing the "specs" file. If the syntax
is sufficiently different, an easier approach to this may be to provide
a wrapper program that converts the GNU syntax of command line options to
the syntax needed for the other assembler/linker and then calls it.
This will also allow for easier porting of build scripts etc.
-Geert
More information about the Gcc
mailing list