klange@luka /tmp$ cat test.c int main(int argc, char * argv[]) { __asm__ ("call __foo_bar_%P0" : : "i"(42)); return 0; } klange@luka /tmp$ gcc -S test.c klange@luka /tmp$ cat test.s [11/21 22:43:44] .file "test.c" .text .globl main .type main, @function main: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 movl %edi, -4(%rbp) movq %rsi, -16(%rbp) #APP # 3 "test.c" 1 call __foo_bar_42 # 0 "" 2 #NO_APP movl $0, %eax popq %rbp .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size main, .-main .ident "GCC: (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1" .section .note.GNU-stack,"",@progbits