Visual Studio: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Line 60:
These work like GCC's inline assembler: they insert the instruction, and the compiler is smart enough to optimize register usage, etc.
 
<presource lang="c">EXTERN int _outp(unsigned short, int);
EXTERN unsigned short _outpw(unsigned short, unsigned short);
EXTERN int _inp(unsigned short);
Line 72:
#define getRetAddr _ReturnAddress
#pragma intrinsic(_ReturnAddress, _outp, _inp, _outpw, _inpw)
</presource>
 
 
=== Compiler Options ===
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu