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.
    If not, is that necessary for me to write the code in pure Asm?"

    If you want complete control of anything non-trivial at an assembler level you will have to write it in assembler.

    "And is that possible to call the C macros inside the ASM?"

    I'm not entirely sure what you mean by 'C macros' in this context but again, if you want complete control you'll have to use assembler.

Reply
  • "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?"

    If you want complete control of anything non-trivial at an assembler level you will have to write it in assembler.

    "And is that possible to call the C macros inside the ASM?"

    I'm not entirely sure what you mean by 'C macros' in this context but again, if you want complete control you'll have to use assembler.

Children
More questions in this forum