Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-bridge/blob/main/tests/native/x86/sysv.c # omega-bridge Omega-first language interoperability: checked conversion backends and native language bindings Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-bridge / tests / native / x86 / sysv.c` 19 lines ยท 733 bytes Raw Blame History 1 /* Generated Omega declarations remain authoritative. The assembly probe is 2 * deliberately a separate caller so its preserved-register sentinels cannot 3 * be optimized away by a host compiler. */ 4 #include "omega_native.h" 5 #include 6 7 extern uint32_t x86_sysv_probe(void *, uint64_t *, uint64_t, uint64_t); 8 9 int main(void) 10 { 11 uint64_t result = 0; 12 const uint8_t abc[] = {'a', 'b', 'c'}; 13 if (x86_sysv_probe((void *)omega2_bsum, &result, (uintptr_t)abc, sizeof abc) != OMEGA_OK || result != 294) 14 return 1; 15 if (x86_sysv_probe((void *)omega2_bsum, &result, 0, 1) != OMEGA_BAD_ARG || result != 294) 16 return 2; 17 puts("PASS SysV AMD64 callee-saved registers on success and refusal"); 18 return 0; 19 }