Phung Nguyen <nhphung@xxxxxxxxx> writes: > When I have a call to a function, GCC will compile into a direct call > to the function. But when I have many calls to the function, the > address of the function will be moved to a register and all the calls > become indirect call.What optimize pass does it and how can I turn it > off? This optimization is good for a variable but it is not good in > the function, so how can I keep it for variables but turning it off > for function? Define NO_FUNCTION_CSE in your CPU.h file. Ian