Home > Back-end >  Assembly, Intel and AT&T both formats usually run in what environment?
Assembly, Intel and AT&T both formats usually run in what environment?

Time:10-11

Run Dev - c + + program, make a mistake, found himself the embedded assembly is Intel format, Dev that IDE supports only AT& T format,

So suddenly ask,

CodePudding user response:

GCC also support the Intel syntax inline assembler (accurately as in the GCC compiler support), only need to write:
__asm__ (
"Intel_syntax noprefix \ n \ t"
"1 \ n \ t mov eax,"
//...
"Att_syntax prefix \ n \ t"
);
  • Related