1 2 3 4 5 6 7 8 9 10 11 12 13 14
extern struct { int a, b, c, d; } v; extern int w; void foo (void) { int e1 = v.a; int e2 = w; int e3 = v.b; int e4 = v.c; int e5 = v.d; __asm__ volatile ("/* %0 %1 %2 %3 %4 */" : : "nro" (e1), "nro" (e2), "nro" (e3), "nro" (e4), "nro" (e5)); }