Hi,
I’m trying to assemble a .S file written in assembly using the llvm-mc utility. The file has a #include C preprocessor directive that seems to be ignored by llvm-mc. Is there any way to instruct llvm-mc to not ignore it?
Thanks.
Hi,
I’m trying to assemble a .S file written in assembly using the llvm-mc utility. The file has a #include C preprocessor directive that seems to be ignored by llvm-mc. Is there any way to instruct llvm-mc to not ignore it?
Thanks.
llvm-mc doesn’t include a C preprocessor; if you need that, use clang.
-Eli
To elaborate on Eli's answer:
llvm doesn't have a "gas" equivalent, but instead have focused on
using clang to do the assembly itself similarly to how you would use
gcc to do the same thing.
-eric