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

Parents
  • 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.

Reply
  • 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.

Children
No data