Home > Software engineering >  How to print the register number with gcc-style inline assembly?
How to print the register number with gcc-style inline assembly?

Time:03-09

Inspired by a recent question.

One use case for gcc-style inline assembly is to encode instructions neither compiler nor assembler are aware of. For example, I gave this example for how to use the rdrand instruction on a toolchain too old to support it:

/* "rdrand %%rax ; setc            
  • Related