-masm=intel
void Test() { int i; asm("mov [i], 5"); ... }
error undefined reference to `i'
#define TEST(out, in) \ asm\ ( \ "mov %1, 5\n\t"\ ".intel_syntax noprefix;" \ --------intel syntax -------- ".att_syntax;" \ :"=g" (out) \ :"g" (in)\ );\
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)