Is there a way to disable passing function arguments in registers using gcc 3.3.1 for ARM?
A:
Perhaps one of these options is what you are looking for
-mabi=name Generate code for the specified ABI. Permissible values are: `apcs-gnu', `atpcs', `aapcs', `aapcs-linux' and `iwmmxt'.
if not, and if there is anything it, would probably be a compile time option (when gcc is compiled).
dwelch
2010-05-08 13:25:51
A:
Yes. I see dwelch gave a global answer, but if you'd like to do this on a function by function basis then use the gcc attribute with regparm. iirc, it should look like this:
int __attribute__((reparam(0))) function(int a, char b) { ... }
TomMD
2010-05-24 05:30:57