[net.lang.c] Inline aassembler in Lattice C

schwadro@aecom.UUCP (David Schwadron) (02/19/85)

Does anybody know of an easy way of using assembler from lattice C?
Certain compilers have inline assembler?

						thanx,
						David Schwadron

g-frank@gumby.UUCP (02/21/85)

> 
> Does anybody know of an easy way of using assembler from lattice C?
> Certain compilers have inline assembler?
>

The QNX C compiler from Quantum Software of Ottawa, Ontario, has an
inline assembler feature.  It looks like a function call.  You say

	asm ("mov dl,lousy_instruction_set") ;

for example, and the line gets passed on to the assembler pass.

This compiler costs $650, but it comes with a multi-user, multi-tasking,
network operating system, assembler, linker, debugger, full screen editor,
terminal independence package, graphics libraries, 8087 support as well
as floating point emulation, etc., etc.  Actually, the compiler comes
with the operating system, not vice-versa, but don't tell anyone.  No
one out there seems to think anything's wrong with PC-DOS.


-- 
      Dan Frank

	  Q: What's the difference between an Apple MacIntosh
	     and an Etch-A-Sketch?

	  A: You don't have to shake the Mac to clear the screen.