Correct way to call inline assembly

Viewed 843

I'm just exploring including assembly inside C++ source code. It seems it starts with a call to asm() but I've also seen _asm() and __asm(). What are the differences between the underscores? If relevant I'm most interested in GNU compiler.

EDIT: from this forum

_asm - simply invokes the inline assembler
__asm - is treated like an intrinsic function call

Not sure if this is true or baloney?

3 Answers
Related