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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190417/0d9d3881/attachment.html>
llvm-mc doesn't include a C preprocessor; if you need that, use clang. -Eli From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Josh Sharp via llvm-dev Sent: Wednesday, April 17, 2019 4:50 PM To: via llvm-dev <llvm-dev at lists.llvm.org> Subject: [EXT] [llvm-dev] using llvm-mc 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190418/b75f0720/attachment.html>
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 On Wed, Apr 17, 2019 at 4:50 PM Josh Sharp via llvm-dev <llvm-dev at lists.llvm.org> wrote:> > 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 Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev