I saw some LLVM generated assembly in NASM format, but did find this support in the official release. Is this supported? -- Thanks Thomson Tan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120621/c571b488/attachment.html>
If by "NASM format" you mean Intel syntax, then yes. In my experience most LLVM tools refer to it with the option "-x86-asm-syntax=intel". For example, tools/llvm-objdump has this flag. --Sean Silva On Wed, Jun 20, 2012 at 10:12 PM, Thomson <lilotom at gmail.com> wrote:> I saw some LLVM generated assembly in NASM format, but did find this > support in the official release. Is this supported? > > -- > Thanks > Thomson Tan > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120620/4aa1d6c6/attachment.html>
Could generated assembly with option "-x86-asm-symtab=intel" be assembled by nasm directly? On Thu, Jun 21, 2012 at 2:30 PM, Sean Silva <silvas at purdue.edu> wrote:> If by "NASM format" you mean Intel syntax, then yes. In my experience most > LLVM tools refer to it with the option "-x86-asm-syntax=intel". For > example, tools/llvm-objdump has this flag. > > --Sean Silva > > On Wed, Jun 20, 2012 at 10:12 PM, Thomson <lilotom at gmail.com> wrote: > >> I saw some LLVM generated assembly in NASM format, but did find this >> support in the official release. Is this supported? >> >> -- >> Thanks >> Thomson Tan >> >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120621/b79dad4d/attachment.html>
On Jun 20, 2012, at 11:12 PM, Thomson wrote:> I saw some LLVM generated assembly in NASM format, but did find this support in the official release. Is this supported?I have no idea where people get this silly notion that Intel syntax is the same as Netwide* syntax. They are NOT the same. They are similar, but not the same. LLVM does not support the Netwide syntax. (There was talk of it, but nothing ever came of it--so far, at least) It does, however, support the Intel syntax... sort of. Specifically, it supports the GNU variant of it (where the actual instructions use Intel syntax, but pseudo-ops use GNU syntax--'.byte' instead of 'DB', for example). * That's what the 'N' in "NASM' stands for. Chip -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120621/2f4d4ccf/attachment.html>