Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: