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

reentrant in assembly

Hello,
If i write a function in assembly and name it with prefix _? , ( example _?FUNCNAME ) will this make that function automatically reentrant. Or is it just a naming convention used by Keil if you write your function in C (and use the "reentrant" keyword).
Regards,
KC

  • From the point of view of your assembly code, it's just a naming convention.

    From the point of view of C code calling hat routine, it makes a statement about where its arguments are passed, and how to call it. I.e. if you have a currently working assembly routine called FOO or _FOO at the moment, and rename it to _?FOO, it's almost guaranteed to stop working.

  • "will this make that function automatically reentrant"

    Nothing is automatic in assembler!
    That's the whole point of assembler - you are in complete control of every detail; if you want anything done, you must do it all yourself.
    Assembler does precisely what you say - nothing more, nothing less.