The generated code reads guest address a at cpu.mem + a, with all 64 bits of a (ir_state.c). The bridge sets
cpu.mem to 0. A guest pointer is then a host pointer: the guest's heap is the host's malloc, a string the guest
passes is read where it is, and a structure the host fills (a stat, a VkPhysicalDeviceProperties) is the guest's
at once. This is what makes the HLE thin and the Vulkan calls direct.
The layouts agree where both sides are LP64 and little-endian, as AArch64 Android and x86-64 or AArch64 Linux are,
with the same alignment rules for C types. A big-endian host (PowerPC64) needs each structure that crosses the boundary
swapped field by field, in the adapters, and a type whose layout differs (bionic's struct stat, pthread_mutex_t,
jmp_buf, va_list) is converted on every host.
Made from docs/platforms/android-apps/native.md at 69237645142c. GPL-3.0-or-later.