Okay, so I had a violin with her and it worked; you cannot force the compiler to embed it, but fortunately you do not need it, just add it to the .s or .asm file and compile with `ml64 / c yourasm.s' and transfer the .obj to the linker.
.CODE getRSP PROC mov rax, rsp add rax, 8 ret getRSP ENDP END
then on the C side the things you need are extern "C" __int64 getRSP();
source share