Re: Does a pointer to function have a "Language Linkage"?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Perry,

>Does a pointer to function have a "Language Linkage"?

I *THINK* (guessing) language linkage *CAN* affect three things:

1. name mangling
  "Do we prepend an underscore?
   Do we C++ mangle the name?
   Do we upper-case-ify?"

2. parameter order on stack
  "Are parameters pushed on left to right?
   Right to left?"

3. who cleans up the stack
  "Does the caller clean up the stack?
   Does the callee clean up the stack?"

For a function pointer, #1 is irrelevant.  #2 and #3 may be relevant,
depending on your platform.

I'm making a *GUESS* here, so I may be completely off base.

If I'm mistaken, I'd be happy to be corrected.

If I missed some, I'd be happy for those additional issues to be brought to
my attention.

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux