Sujet : Re: Prioritize Performance over Correctness De : ldo (at) *nospam* nz.invalid (Lawrence D’Oliveiro) Groupes :comp.lang.c Date : 02. Aug 2026, 23:51:08 Autres entêtes Organisation : A noiseless patient Spider Message-ID :<114ohks$rsgh$2@dont-email.me> References :123456789 User-Agent : Pan/0.165 (Kostiantynivka)
On Sun, 2 Aug 2026 14:37:20 -0700, Chris M. Thomasson wrote:
Can void* always hold a function pointer? I think not.
Even on architectures with separate instruction/data spaces, I would say it is reasonable to require that void* can indeed hold a function pointer.
This is because you are likely to need a pointer to some environment context for the function to execute in anyway, so the function pointer won’t point directly to the code, but to a descriptor that contains the pointer to the code.