Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Addendum F: C Backend

F.1 Target Description

  • Architecture: C99 implementation with 64-bit uintptr_t, object pointers, function pointers, and uint64_t
  • Environment: Any system with a C compiler that can build the generated program
  • Output Format: C source compiled to the host platform's native executable format
  • Memory Model: Native target process memory, using udewy's byte-length-prefixed ordinary-string and based-string layout

This backend is intended as a portable code-generation target, not as a promise that every udewy program is portable. Programs remain portable only to the extent that their extern bindings, imported C capabilities, and imported native artifacts are portable.