How to write multiple assembly statements within asm() without “\\t\\n” separating each line using GCC?
How to write multiple assembly statements within asm() without "\t\n" separating each line using GCC? I've seen some textbooks write multiple assembly statements within asm() as: asm(" movl $4, %eax movl $2, %ebx addl %eax, %ebx ... "); However, my compiler (GCC) doesn't recognize this syntax. Instead, I must rely on "\t\n" separating each line or using multiple asm() : asm( "movl $4, %eax\t\n" "movl $2, %ebx\t\n" "addl %eax, %ebx\t\n" ...); or asm("movl $4, %eax"); asm("movl $2, %ebx"); asm("addl %eax, %ebx"); ... How do I enable the "clean" syntax with no "\t\n" or repeated asm() ? GCC Your