1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef ASM_H #define ASM_H #ifdef __STDC__ # define _C_LABEL(x) _ ## x #else # define _C_LABEL(x) _/**/x #endif #define _ASM_LABEL(x) x #define _ENTRY(name) \ .text; .align 4; .globl name; name: #define ENTRY(name) \ _ENTRY(_C_LABEL(name)) #endif