Jeremy Rand
4862a6612b
Add placeholder implementations of a couple more methods. At this point, I can "compile":
...
int theAnswer(void)
{
return 42;
}
It compiles in the sense that clang executes to the end without crashing but the .s file it produces is useless. But another small step forward.
2015-07-30 23:29:36 -04:00
Jeremy Rand
9d6408d419
Add register classes.
2015-07-30 23:12:12 -04:00
Jeremy Rand
e3aaebf907
Fix crash which was caused by not attempting to compute register properties. Now, the register properties fail to be computed because "No integer registers defined!"
2015-07-30 01:48:59 -04:00
Jeremy Rand
b11140166b
Add some logs to help trace what i happening when executing.
2015-07-28 23:15:15 -04:00
Jeremy Rand
6bfb66385d
Add a logging mechanism to make it easier to debug the 65816 code.
2015-07-28 00:18:06 -04:00
Jeremy Rand
39070eb1d0
Model the direct page as a series of 16-bit, 32-bit and 64-bit integer registers and also a series of 32-bit and 64-bit float registers. Reserve the 0th 32-bit integer register in the direct page for use as a frame pointer.
2015-07-23 23:45:42 -04:00
Jeremy Rand
26846cab41
I have no idea why I thought I did't need a subtarget. I do need one so I have added it.
2015-07-17 23:57:48 -05:00
Jeremy Rand
9bb9bf24c8
More work towards getting the compiler to not crash.
2015-07-17 22:22:50 -05:00
Jeremy Rand
6900b043ed
Remove some debug that I didn't intend to commit.
2015-07-17 20:16:29 -05:00
Jeremy Rand
8c1a0d70be
Lots of basic infrastructure. And get it compiling.
2015-07-17 20:05:36 -05:00
Jeremy Rand
51e5e090e2
More fixes to the instruction definitions to try to get the build working.
2014-07-22 16:27:11 -04:00
Jeremy Rand
727ae91f80
More fixes to the instruction set definition to try to get things building again.
2014-07-19 23:17:18 -04:00
Jeremy Rand
91e7016b1f
More work to get a basic WDC65816 infrastructure in and compiling.
2014-07-11 23:47:17 -04:00
Jeremy Rand
036df005af
Add some more boilerplate for the 65816.
2014-07-06 23:24:07 -04:00
Jeremy Rand
4b9fc0c5ac
Add a basic configuration for the 65816 target - build fails now…
2014-07-04 23:41:51 -04:00
Jeremy Rand
292c2829ab
Initial commit with LLVM 3.4.1, cfe 3.4.1 and compiler-rt 3.4
2014-07-04 22:48:00 -04:00