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

About function call

Is there any "naked" attribute function for Keil C?

This is because I would like to have complete control over the push/pop of the registers during function call.
If not, is that necessary for me to write the code in pure Asm? And is that possible to call the C macros inside the ASM?


Thank you~

Parents
  • This is because I would like to have complete control over the push/pop of the registers during function call.
    ..
    I would like the stack for my context switching task.


    The '51 is not a "mini PC", variables do not go on the stack and the chip is singularily not suited for task switching.

    Erik

Reply
  • This is because I would like to have complete control over the push/pop of the registers during function call.
    ..
    I would like the stack for my context switching task.


    The '51 is not a "mini PC", variables do not go on the stack and the chip is singularily not suited for task switching.

    Erik

Children
No data