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/seed/ng/front/prune.txt # 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 / seed / ng / front / prune.txt` 54 lines ยท 1566 bytes Raw Blame History 1 # ng-front prune script (seed/ng/front/prune.om): omc.om@`943d9555` renamed by rename.map and hand-edited, 2 # minus the paths that cannot run in an ng front end. 3 # 4 # 1. Targets. fe_run exits 64 right after the lead lines for an x86/EFI target unit (D8) and for an IR v1 5 # unit, so f_xtarge and f_irmode are 0 in every unit the front end goes on with. 6 false ne get f_xtarge 0 0 7 true eq get f_xtarge 0 0 8 true ne get f_xtarge 0 1 9 false eq get f_xtarge 0 2 10 false eq get f_xtarge 0 1 11 false or ne get f_irmode 0 0 ne get f_xtarge 0 0 12 false and ne get f_xtarge 0 0 ne get f_om2 0 0 13 false and ne get f_xtarge 0 0 eq get f_scanni 0 0 14 true or eq get f_xtarge 0 0 eq get f_bdead i 0 15 false and eq w `6907493` eq get f_xtarge 0 2 16 false ne get f_irmode 0 0 17 call fe_xaddr 18 call fe_xstore 19 dead fe_run 20 # 21 # 2. Machine code. The check pass writes no program: the code buffer f_out, its offset f_oc and every 22 # global that only holds code offsets are sinks; the word writers and branch patchers go; then every 23 # function left without an effect goes with its call statements. An om2 fmt unit is checked (fmtprep) but 24 # not formatted: the fmtout calls under `if ne get f_fmtm 0 0` go, and f_fmtm is a sink. 25 sink f_out 26 sink f_oc 27 sink f_bbr 28 sink f_bhead 29 sink f_lastb 30 sink f_ilp 31 sink f_cpos 32 sink f_brkpos 33 sink f_fstart 34 sink f_fnaddr 35 sink f_callsi 36 sink f_tsite 37 sink f_tgoc 38 sink f_nt 39 sink f_tcode 40 sink f_fmtm 41 call fe_emit 42 call fe_emitb 43 call fe_patch19 44 call fe_patch26 45 call fe_blo 46 call fe_wrword 47 false ne get f_fmtm 0 0 48 false and ne get f_dead 0 0 gt n p0 49 pure 50 dead fe_run 51 tidy 52 pure 53 tidy 54 dead fe_run