kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

global.c (305B)


      1 /* Read of a module-global. Codegen emits the adrp/ldr pair with an
      2  * ADR_PREL_PG_HI21 + LDST32_ABS_LO12_NC relocation pair against `g`, which the
      3  * symbolizer must render as `adrp x, g` + `ldr w, [x, :lo12:g]`. Branch-free.
      4  * Exit code g + 1 = 42. */
      5 int g = 41;
      6 int test_main(void) { return g + 1; }