Author Topic: using nasm with tcc and the "asm" keyword  (Read 6730 times)

nobody

  • Guest
using nasm with tcc and the "asm" keyword
« on: September 10, 2005, 04:12:51 AM »
i have googled for ways to use nasm(instead of tasm) with tcc using asm keyword(such as asm mov ax,0) but can not figure out how to do it
I have been wanting to switch from tasm to nasm so people can build my kernel freely but am having this problem

nasm64developer

  • Guest
Re: using nasm with tcc and the "asm" keyword
« Reply #1 on: September 13, 2005, 10:23:17 PM »
Conceptually, C inline assembly is not fed to a
standalone external assembler, but rather put
verbatim into a stream of intermediate assembly
code that is otherwise produced by a C compiler.

Also, even if the C compiler in question can
emit the intermediate assembly code (e.g.
the -S option for GCC), then that code tends
to target a particular assembler. Therefore it
may or may not be suitable for being fed to
a different assembler than the intended one.

In other words: forget it.