4.6.1.24 Stackcall Option
The -mstackcall
option allows the compiler to use a table
look-up method of calling functions for some devices.
Once the device's hardware stack, which holds function return addresses (5.7.1 Function Return Address Stack), has been filled, no further function nesting can take place without corrupting function return values. If this option is enabled, the compiler will revert to using a look-up table method of calling functions once the stack is full (see 5.8.7 Calling Functions).
This option has no effect when building PIC18 projects; however, these devices have a hardware stack sufficiently deep to accommodate all but the most complex of programs.