diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-03 17:49:53 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-03-03 17:49:53 +0000 |
commit | 76de3faca823ce51e32f0e3c4bcc6127492efdc5 (patch) | |
tree | a08cdd2451106cecebd09055ba8b306b39d565fd | |
parent | 2592ee34545fb3e358acb16114b6e74107024a5e (diff) | |
download | Compiler-76de3faca823ce51e32f0e3c4bcc6127492efdc5.tar.gz Compiler-76de3faca823ce51e32f0e3c4bcc6127492efdc5.zip |
Working AST
-rw-r--r-- | test.c | 6 | ||||
-rw-r--r-- | test.s | 47 |
2 files changed, 0 insertions, 53 deletions
@@ -1,6 +0,0 @@ -int i = 5; - -int main() { - i = 13; - return i; -} @@ -1,47 +0,0 @@ - .file 1 "test.c" - .section .mdebug.abi32 - .previous - .nan legacy - .module fp=xx - .module nooddspreg - .abicalls - .option pic0 - .globl i - .data - .align 2 - .type i, @object - .size i, 4 -i: - .word 5 - .text - .align 2 - .globl main - .set nomips16 - .set nomicromips - .ent main - .type main, @function -main: - .frame $fp,8,$31 # vars= 0, regs= 1/0, args= 0, gp= 0 - .mask 0x40000000,-4 - .fmask 0x00000000,0 - .set noreorder - .set nomacro - addiu $sp,$sp,-8 - sw $fp,4($sp) - move $fp,$sp - lui $2,%hi(i) - li $3,13 # 0xd - sw $3,%lo(i)($2) - lui $2,%hi(i) - lw $2,%lo(i)($2) - move $sp,$fp - lw $fp,4($sp) - addiu $sp,$sp,8 - jr $31 - nop - - .set macro - .set reorder - .end main - .size main, .-main - .ident "GCC: (Codescape GNU Tools 2016.05-03 for MIPS MTI Linux) 4.9.2" |