Below you will find pages that utilize the taxonomy term “Asm”
November 9, 2019
Mixing C++ with AMD64 (x86_64) assembly
Lately, I’ve been dabbling into some “closer to the metal” kind of programming.
On most compilers (Visual Studio’s one for instance) it used to be rather easy to mix assembly code and C++ code using a feature called inline assembly where the ASM code will be put in a block (decorated with a special macro/symbol like _asm
for instance), and when the compiler sees that, it will put the content of this “as is” inside of the compiled code.