News for hackers. Stuff that matters.
Re:Vcc – The Vulkan Clang Compiler by JonChesterfield on Wednesday January 10, 2024 @11:20AM (#38940259)
Function pointers between different architectures can be done.

Index into a table, webasm style is the easy option.

Writing a prolog that is valid in both architectures works too, I quite like that one.

You declare one to be the more important (e.g. x64) and do a hash table lookup on the other.

Or the most popular option of crash when calling a pointer from the other arch.

There are no comments on this comment yet.