Original question asked on Stackoverflow: Can the 'r' be removed from a function stack ?

I am trying to modify the processor for the Fujitsu FR, and IDA by default inserts the return variable r on each stack, but the Fujitsu FR processor does not put r as the first item, so this stuffs up the stack.

What I can't workout is: in the processor plugin, what needs overriding to resolve this, or if any of the example processors have solutions to copy.

1 Answer 1


for completeness, implementing get_frame_retsize [int (*get_frame_retsize(func_t *pfn)] in your processor_t LPH is the solution to this.

in that function for my processor I needed to return zero instead of the default of 4.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.