Closed Mesabloo closed 3 years ago
Implements working basic sections (code and data, but this can easily be extended to others) as described in #19, #40 and #2.
code
data
Summary of the PR:
%r0(%r1)
push @r64
pop @r64
add @r64 @r64
mov @*a @r64
add @s64, @r64
mov @(r64-N) @r64
sub @s64 @r64
This PR also adds marginal functionalities such as:
-ddump-ast
-ddump-typed-ast
-o FILENAME
Once all of this is done, the PR can be merged.
Implements working basic sections (
code
anddata
, but this can easily be extended to others) as described in #19, #40 and #2.Summary of the PR:
code
anddata
sections:data
sections in the typechecker contextcode
sectiondata
section of the typed AST along with thecode
section%r0(%r1)
)push @r64
pop @r64
add @r64 @r64
mov @*a @r64
add @s64, @r64
mov @(r64-N) @r64
sub @s64 @r64
data
label offsetsThis PR also adds marginal functionalities such as:
-ddump-ast
and-ddump-typed-ast
options-o FILENAME
command-line optionOnce all of this is done, the PR can be merged.