[cfe-dev] How to set my assembler?

Joerg Sonnenberger joerg at britannica.bec.de
Fri May 4 07:53:36 PDT 2012

On Fri, May 04, 2012 at 10:23:10PM +0800, Jianjun Mao wrote:
> Hi all.
> clang(3.0, Linux) will set "as" in PATH as the default assembler, but I
> want to change this like using this option "-ccc-gcc-name" to change the
> default gcc. But as mentioned here
> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-June/015671.html there's no
> "-ccc-gas-name" or "-ccc-as-name" to specify the assembler. So what I can
> do is to add "as" into  PATH. Now I'm using clang to cross compile
> arm-target programs, and I must set arm-xxx-as to the default assembler. It
> is not nice to create a symbol link named "as" in PATH linked to arm-xxx-as
> which will overlap the default assember "/usr/bin/as".  So if any one can
> give a help?
> clang invoked with follow options:
> >clang -ccc-host-triple arm-linux-gnueabi -ccc-gcc-name
> arm-unknown-linux-gnueabi-gcc -mfloat-abi=hard -c -v xxx.c
> and which shows clang will invoke "as" in PATH

Just call it arm-linux-gnueabi-as.


More information about the cfe-dev mailing list