Some compilers support the nonstandard language extension of in-code ASM blocks. For VC++, it's __asm { /*asm here*/ } - you'll have to see what it is for other compilers.
I was going to say that the asm keyword is standard, but, wow, I've never seen this Microsoft gem"
MSDN wrote:
Visual C++ support for the Standard C++ asm keyword is limited to the fact that the compiler will not generate an error on the keyword. However, an asm block will not generate any meaningful code.
@Fredbill30
No, that's the whole point of assembly. You can write a few versions of the same routine for each of the supported platforms, though (e.g. boost.context is being done that way)