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

assembler rtn called from C

I have the impression that an assembler non-interrupt subroutine called from 'C' need save no registers.

Is that correct?

Erik

Parents
  • Yes. That's Correct.

    Saving registers in an assembler function (the way that I think you are thinking) is unnecessary and gains nothing.

    Note that you may want to use REGUSE in the assembler module to help the Global Register Coloring optimization (if you use it). But, this is not required.

    Jon

Reply
  • Yes. That's Correct.

    Saving registers in an assembler function (the way that I think you are thinking) is unnecessary and gains nothing.

    Note that you may want to use REGUSE in the assembler module to help the Global Register Coloring optimization (if you use it). But, this is not required.

    Jon

Children
No data