How to print pointer to function?

Segher Boessenkool segher@kernel.crashing.org
Tue Dec 17 13:27:00 GMT 2019


On Tue, Dec 17, 2019 at 09:17:20PM +0800, Liu Hao wrote:
> POSIX requires casting between `void*` and pointer-to-function to
> preserve values in the specification of `dlsym()`. C++ says it is
> conditionally supported. I don't see portability issues. Non-POSIX
> systems (other than Windows) died decades ago.

Not all systems are hosted at all.  Other than that I agree for anything
practical (and almost all embedded systems will have POSIX behaviour for
many basic things like this).


Segher



More information about the Gcc-help mailing list