This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Parameter Passing in Fixed Memory Locations

Why is memory reserved for parameters which are actually passed
in registers? Isn't that a waste of DATA space?

Parents
  • It isn't!

    Fixed locations are only used when the compiler is not using registers.

    The location of the fixed areas (DATA, XDATA, etc) is controlled by the memory model.

    The compiler puts an underscore prefix on the names of functions with arguments passed in registers (and "_?" for reentrant functions).

Reply
  • It isn't!

    Fixed locations are only used when the compiler is not using registers.

    The location of the fixed areas (DATA, XDATA, etc) is controlled by the memory model.

    The compiler puts an underscore prefix on the names of functions with arguments passed in registers (and "_?" for reentrant functions).

Children
No data