|
From: Maarten B. <sou...@ds...> - 2025-01-10 15:22:22
|
Philipp Klaus Krause wrote on 2025-01-10 15:09: > Am 10.01.25 um 12:01 schrieb Maarten Brock: >> I believe generic pointers should be able to hold function pointers. >> And I assume that this means that generic pointers can also hold far >> pointers. And thus the mcs51-like approach is required. > > Generic pointers already can't hold function pointers for the stm8 > large > memory model. Doesn't the standard say that any pointer (including a function pointer) when cast to (void*) and then cast back to its original type should result in the same valid (function) pointer ? Maarten |