diff options
| author | Jack Palevich <jackpal@google.com> | 2009-05-13 16:24:17 -0700 |
|---|---|---|
| committer | Jack Palevich <jackpal@google.com> | 2009-05-13 19:51:03 -0700 |
| commit | a65356109772b04283d18d21dd5455e825ba8c25 (patch) | |
| tree | 73a7912b6376e9a3d034da9bbaef064b9f484108 /libacc/tests | |
| parent | 546b2249eff4d95622c4bab0698ebf290c9ed836 (diff) | |
| download | system_core-a65356109772b04283d18d21dd5455e825ba8c25.zip system_core-a65356109772b04283d18d21dd5455e825ba8c25.tar.gz system_core-a65356109772b04283d18d21dd5455e825ba8c25.tar.bz2 | |
ARM codegen: Add disassembler, implement return
This program works:
main() { return 42; }
The disassembler was borrowed from codeflinger, and just modified enough to compile
under C++ without warnings.
Implemented gsym
Implemented a hack verison of li, only works for -256..255
Implemented gjmp
Diffstat (limited to 'libacc/tests')
| -rw-r--r-- | libacc/tests/otcc.out-orig | bin | 8591 -> 8591 bytes | |||
| -rw-r--r-- | libacc/tests/returnval.c | 3 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libacc/tests/otcc.out-orig b/libacc/tests/otcc.out-orig Binary files differindex 6b8bd59..fa14c72 100644 --- a/libacc/tests/otcc.out-orig +++ b/libacc/tests/otcc.out-orig diff --git a/libacc/tests/returnval.c b/libacc/tests/returnval.c new file mode 100644 index 0000000..3142fe2 --- /dev/null +++ b/libacc/tests/returnval.c @@ -0,0 +1,3 @@ +main() { + return 42; +}
\ No newline at end of file |
