[cfe-users] Swap-in NASM for testing (sources with inline assembly)?

Jeffrey Walton noloader at gmail.com
Fri Jul 24 12:05:39 PDT 2015


We are trying to test a configuration where the user selects Clang as
a compiler, but wants to use NASM as the assembler.

Is there an option to tell Clang to use NASM?

**********

Our other option is to:

  export AS=nasm
  export CXX=clang++ -no-integrated-assembler

But that's resulting in:

    make clean && make
    ...
    clang++ -no-integrated-as -DNDEBUG -g2 -O3 -fPIC -march=native
-DCRYPTOPP_DISABLE_ASM -Wall -Wno-tautological-compare -pipe -c
arc4.cpp
    clang++ -no-integrated-as -DNDEBUG -g2 -O3 -fPIC -march=native
-DCRYPTOPP_DISABLE_ASM -Wall -Wno-tautological-compare -pipe -c
asn.cpp
    /var/folders/mk/y7lk0xrx72lcn_2q3d12jcch0000gn/T/asn-e2a536.s:4883:no
such instruction: `vxorps %xmm0, %xmm0,%xmm0'
    /var/folders/mk/y7lk0xrx72lcn_2q3d12jcch0000gn/T/asn-e2a536.s:4888:no
such instruction: `vmovaps %xmm0, -48(%rbp)'
    ... (hundreds of similar lines)



More information about the cfe-users mailing list