This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to change which assembler GCC uses
- To: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>,"James Montgomerie" <jrmg at dcs dot ed dot ac dot uk>
- Subject: Re: How to change which assembler GCC uses
- From: "Geert Bosch" <bosch at gnat dot com>
- Date: Thu, 01 Feb 2001 18:56:05 -0500
- Reply-To: "Geert Bosch" <bosch at gnat dot com>
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