Compiler/code generator: Difference between revisions

m
Line 2,617:
end
filter!(x -> x.code != "nop", asmarr)
# renumber offset column with acualactual offsets
pos = 0
jmps = Dict{Int, Int}()
Line 2,627:
pos += acode.code in ["push", "store", "fetch", "jz", "jmp"] ? 5 : 1
end
# fixupfix up jump destinations
for acode in asmarr
if acode.code in ["jz", "jmp"]
4,108

edits