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.
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.