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/polyglot-asm.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 / polyglot-asm.mk` 32 lines ยท 1141 bytes Raw Blame History 1 # POLYGLOT-0 lane B1: pure seeded OM-2 correctness gate (spec/polyglot-0.md). 2 # test-polyglot-asm: builds and runs tests/polyglot/test_asm.om via seed/out/omc 3 # (error contract, MA-3 shape grid, random unaligned+canary cases, large magnitudes 4 # up to OMA_RZ_MAX_N). 5 # Guarded because Makefile includes mk/*.mk and mk/polyglot.mk may be read alongside. 6 ifndef POLYGLOT_ASM_MK 7 POLYGLOT_ASM_MK := 1 8 9 PGA_OMC ?= seed/out/omc 10 PGA_ARCH = -march=armv8.6-a+dotprod+i8mm 11 OBJCOPY ?= objcopy 12 PGA_DIR = $(OUT_DIR)/tests-polyglot 13 PGA_SRCS = src/polyglot/omx_common.om src/polyglot/omx_encoder.om tests/polyglot/test_asm.om 14 PGA_BINS = $(PGA_DIR)/gnu_sdot.text.bin $(PGA_DIR)/gnu_crumb.text.bin 15 PGA_TEST = $(PGA_DIR)/test_asm 16 17 $(PGA_DIR)/gnu_%.o: src/polyglot/asm/omx_%.S 18 @mkdir -p $(dir $@) 19 $(CC) $(PGA_ARCH) -c -o $@ $< 20 21 $(PGA_DIR)/gnu_%.text.bin: $(PGA_DIR)/gnu_%.o 22 $(OBJCOPY) -O binary --only-section=.text $< $@ 23 24 $(PGA_TEST): $(PGA_SRCS) $(PGA_OMC) 25 @mkdir -p $(dir $@) 26 cat $(PGA_SRCS) | $(PGA_OMC) > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@ 27 28 .PHONY: test-polyglot-asm 29 test-polyglot-asm: $(PGA_TEST) $(PGA_BINS) 30 ./$(PGA_TEST) $(PGA_BINS) 31 32 endif