Differences between AT&T assembly and intel assembly:
1. AT&T has a more complex way of writing instant numbers, variables ($), and registers (%. Intel directly uses it.
2. the Source and Destination operands of AT&T are opposite to those of intel.
3. Addressing AT&T uses the segment address: (offset, base address, factor) while inel directly uses the segment address: [base address * factor + offset]
4. The Code identifies AT&T as. text and intel as. coder.
Differences between gcc embedded assembly and VC Embedded Assembly:
1. gcc embedded assembly is AT&T, and vc Embedded Assembly is in intel format.
2. The compilation keyword in gcc is asm and in vc is _ asm (also supports asm)
3. The Assembly in gcc needs to name the input and output variables. The variable embedded in the Assembly in vc directly uses the variable in the c/c ++ statement.
4. The Assembly statement in gcc needs to be separated by semicolons or/n/t, which can be written in a row, while the line feed is required in vc.
Now, I know this. I hope you can give me some advice.