NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on September 10, 2005, 04:12:51 AM

Title: using nasm with tcc and the "asm" keyword
Post by: nobody 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
Title: Re: using nasm with tcc and the "asm" keyword
Post by: nasm64developer 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.