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-mv/blob/main/mk/compiler.mk # omega-mv Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance. Brought by drakestapleton Sign in to star 1 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mv / mk / compiler.mk` 50 lines ยท 2876 bytes Raw Blame History 1 # Compiler verification suite. 2 # The frozen C OSC-1 compiler (src/compiler/) was removed in commit `bb7f2dd68` in favor of 3 # the pure seeded-Omega compiler (seed/out/omc, rebuilt from seed/rung0/seed0.hex). 4 # Picked up by `-include mk/*.mk`. 5 # 6 # test-compiler / test-compiler-full / test-compiler-quick: 7 # - legacy AArch64 writer differential/refusal test (plain + ASan/UBSan) while C callers remain 8 # - frozen legacy AArch64 caller allowlist check (tests/compiler/legacy_a64_callers.sh) 9 # - seeded compiler fixpoint bootstrap (sh seed/omega-from-seed.sh) 10 ifndef COMPILER_MK 11 COMPILER_MK := 1 12 .PHONY: test-compiler test-compiler-full test-compiler-quick 13 OSC_DIR = $(OUT_DIR)/compiler 14 OSC_CFLAGS = -std=gnu11 -Wall -Wextra -Werror -D_GNU_SOURCE -O2 -Isrc 15 OSC_ASAN = -O1 -g -fsanitize=address,undefined -fno-sanitize-recover=all 16 17 OSC_LEGACY_A64 = src/aarch64_encoder.c src/aarch64_decoder.c src/omega_om_units.c 18 OSC_LEGACY_A64_HDRS = src/aarch64_encoder.h src/aarch64_decoder.h src/aarch64_target.h src/omega_api_decl.h 19 20 $(OSC_DIR)/test_legacy_a64: tests/compiler/test_legacy_a64.c $(OSC_LEGACY_A64) $(OSC_LEGACY_A64_HDRS) 21 @mkdir -p $(OSC_DIR) 22 $(CC) $(OSC_CFLAGS) -o $@ tests/compiler/test_legacy_a64.c $(OSC_LEGACY_A64) 23 24 $(OSC_DIR)/test_legacy_a64_asan: tests/compiler/test_legacy_a64.c $(OSC_LEGACY_A64) $(OSC_LEGACY_A64_HDRS) 25 @mkdir -p $(OSC_DIR) 26 $(CC) $(OSC_CFLAGS) $(OSC_ASAN) -o $@ tests/compiler/test_legacy_a64.c $(OSC_LEGACY_A64) 27 28 test-compiler: $(OSC_DIR)/test_legacy_a64 $(OSC_DIR)/test_legacy_a64_asan 29 @mkdir -p $(OSC_DIR) 30 $(abspath $(OSC_DIR)/test_legacy_a64) > $(OSC_DIR)/legacy_a64.out 31 @tail -1 $(OSC_DIR)/legacy_a64.out; grep -q '^OSC2_LEGACY_A64_PASS$$' $(OSC_DIR)/legacy_a64.out 32 $(abspath $(OSC_DIR)/test_legacy_a64_asan) quick > $(OSC_DIR)/legacy_a64_asan.out 33 @tail -1 $(OSC_DIR)/legacy_a64_asan.out; grep -q '^OSC2_LEGACY_A64_PASS$$' $(OSC_DIR)/legacy_a64_asan.out 34 @grep "^legacy a64 differential: .* mismatches=0$$" $(OSC_DIR)/legacy_a64.out 35 sh tests/compiler/legacy_a64_callers.sh --selftest > $(OSC_DIR)/legacy_callers.out 36 @tail -1 $(OSC_DIR)/legacy_callers.out; grep -q '^OSC2_LEGACY_CALLERS_PASS ' $(OSC_DIR)/legacy_callers.out 37 sh seed/omega-from-seed.sh 38 @echo "test-compiler: PASS (seeded omc fixpoint + legacy AArch64 writer)" 39 40 OSC_QDIR = $(OSC_DIR)/quick 41 test-compiler-full: test-compiler 42 43 test-compiler-quick: $(OSC_DIR)/test_legacy_a64 44 @mkdir -p $(OSC_QDIR) 45 $(abspath $(OSC_DIR)/test_legacy_a64) quick > $(OSC_QDIR)/legacy_a64.out 46 @tail -1 $(OSC_QDIR)/legacy_a64.out; grep -q '^OSC2_LEGACY_A64_PASS$$' $(OSC_QDIR)/legacy_a64.out 47 sh tests/compiler/legacy_a64_callers.sh --selftest > $(OSC_QDIR)/legacy_callers.out 48 @tail -1 $(OSC_QDIR)/legacy_callers.out; grep -q '^OSC2_LEGACY_CALLERS_PASS ' $(OSC_QDIR)/legacy_callers.out 49 @echo "test-compiler-quick: PASS (legacy AArch64 writer + caller allowlist; C compiler retired)" 50 endif