How to declare and initialize local variables in gcc inline assembly without extended inline asm?
问题 I know this is a very basic question but I am really stuck on it. In fact I am absolutely newbie in GCC syntax. I want to have local variables (Stack addresses with labels) without using extended inline assembly. Something like the following code in Intel syntax: DATA1 DB 100 MOV AL, DATA1 This is the code I guess may substitute in GCC: int someFunction(int x) { __asm__ volatile( "function1:" ".data;" ".2byte $4 data1 ;" ".text;" "pushq %rbp;" "movq %rsp , %rbp ;" "movl var , %eax;" // this