diff options
author | ymherklotz <ymherklotz@gmail.com> | 2017-03-10 15:23:46 +0000 |
---|---|---|
committer | ymherklotz <ymherklotz@gmail.com> | 2017-03-10 15:23:46 +0000 |
commit | b751d9ade81f47d75a5dc16f40890f30a6a1d1c5 (patch) | |
tree | d2ff52856eff330ad2b9df60d88884c2a73569e1 /c_compiler/test/out | |
parent | 21c873789eda041f7004d12637be3f3ed6f4cebc (diff) | |
download | Compiler-b751d9ade81f47d75a5dc16f40890f30a6a1d1c5.tar.gz Compiler-b751d9ade81f47d75a5dc16f40890f30a6a1d1c5.zip |
Got variables and bindings kind of working
Diffstat (limited to 'c_compiler/test/out')
-rwxr-xr-x | c_compiler/test/out/03 | bin | 672108 -> 672108 bytes | |||
-rw-r--r-- | c_compiler/test/out/03.s | 3 | ||||
-rwxr-xr-x | c_compiler/test/out/04 | bin | 676220 -> 676220 bytes | |||
-rw-r--r-- | c_compiler/test/out/04.s | 5 | ||||
-rw-r--r-- | c_compiler/test/out/04.stderr.txt | 1 |
5 files changed, 9 insertions, 0 deletions
diff --git a/c_compiler/test/out/03 b/c_compiler/test/out/03 Binary files differindex a020bfc..9a997cd 100755 --- a/c_compiler/test/out/03 +++ b/c_compiler/test/out/03 diff --git a/c_compiler/test/out/03.s b/c_compiler/test/out/03.s index eae78d0..b1071cb 100644 --- a/c_compiler/test/out/03.s +++ b/c_compiler/test/out/03.s @@ -4,6 +4,9 @@ main: addiu $sp,$sp,-12 sw $fp,8($sp) move $fp,$sp + move $2,$0 + sw $2,4($fp) + lw $2,4($fp) move $sp,$fp lw $fp,8($sp) addiu $sp,$sp,12 diff --git a/c_compiler/test/out/04 b/c_compiler/test/out/04 Binary files differindex a23dad4..e50b1ae 100755 --- a/c_compiler/test/out/04 +++ b/c_compiler/test/out/04 diff --git a/c_compiler/test/out/04.s b/c_compiler/test/out/04.s index 992f12a..a91af30 100644 --- a/c_compiler/test/out/04.s +++ b/c_compiler/test/out/04.s @@ -4,6 +4,11 @@ main: addiu $sp,$sp,-16 sw $fp,12($sp) move $fp,$sp + li $2,3 + sw $2,4($fp) + li $2,5 + sw $2,8($fp) + lw $2,8($fp) move $sp,$fp lw $fp,12($sp) addiu $sp,$sp,16 diff --git a/c_compiler/test/out/04.stderr.txt b/c_compiler/test/out/04.stderr.txt index e69de29..e585698 100644 --- a/c_compiler/test/out/04.stderr.txt +++ b/c_compiler/test/out/04.stderr.txt @@ -0,0 +1 @@ +Can't find identifier 'v' in current scope binding |