Um, have you tried this Ingo? Given
extern char __foo;
#define foo ((int)&__foo)
int bar(int *x)
{
return x[foo+45];
}
or suchlike you should see __foo combined with other operations.
movl $__foo+45,%eax
movl (%edx,%eax,4),%eax
in this case due to the shift.
My guess is that you can do fairly well with the immediates.
Certainly better than having them be completely variable.
r~
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/