Anthony Amaro Jr <anthonyamaro@xxxxxxxxx> writes: > We've got some C code on the Freescale MPC8360e (powerpc) for which > we're trying to get the compiler to generate load/store multiple > instructions, particularly when saving registers to the stack on a > function call. We've tried using the -mstatic and -mmultiple compiler > flags however it still issues stw instructions for each register. I > have read that declaring global registers can prevent the store > multiple instructions from being used however I cannot find anywhere > in the code where we do that. Is there a flag I can set to throw a > compiler warning or an error for when the compiler refuses to use > load/store multiple instructions (even with the -mstatic and > -mmultiple flags)? There is no such flag. Looking at the source code, it looks like gcc will not use the multiple instructions on PPC64. Are you generating 64-bit code? Other than that, and the issue with global register variables that you already know, I don't have any suggestions; sorry. Ian