1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-30 15:31:17 +00:00
Commit Graph

1589 Commits

Author SHA1 Message Date
jespergravgaard
633cc9294b Working on M/Z synth rules. 2019-10-03 23:29:21 +02:00
jespergravgaard
78d316e7db Working on M/Z synth rules. 2019-10-03 22:58:34 +02:00
jespergravgaard
a494e06e4b Fixed test. 2019-10-03 18:34:55 +02:00
jespergravgaard
d60a275a68 Added 2 fragments from Travis Fisher 2019-10-03 10:45:48 +02:00
jespergravgaard
812546d603 Fixed NPE if ranged loop-variable is not declared. Closes #333 2019-10-03 10:41:10 +02:00
jespergravgaard
f4206a2e84 Optimized fragments in test (still needs proper handling of CPU aspects). Added error when encountering unsupported const parameters. Closes #331 2019-10-03 10:29:58 +02:00
jespergravgaard
ec6139de54 Updated fragment test data #328 2019-10-02 08:27:48 +02:00
jespergravgaard
ce0377e155 Changed Z-fragments to M-fragments. Added z-to-m synth. 2019-10-02 01:07:42 +02:00
jespergravgaard
75dbe31cef Progress on memory variables. Added identification of identical memory registers. #328 2019-10-01 22:28:54 +02:00
jespergravgaard
7b7d7de49d Progress on memory variables. Avoided const/alias/... passes. Added new register type and the first few fragments. The first few tests working. #328 2019-09-30 23:57:27 +02:00
jespergravgaard
cfff09e038 Added fragments from Paul Gardner-Stephen. 2019-09-30 08:15:07 +02:00
jespergravgaard
e3ebed534f Updated version number 2019-09-30 07:29:44 +02:00
jespergravgaard
73854b7ee3 Added two memory variable tests with struct values. (illustrating that they do not work yet.) #328 2019-09-30 00:18:41 +02:00
jespergravgaard
624c27686c Added underscores to compiler-generated ASM-symbols to avoid clashes with C-symbols. Closes #329 2019-09-29 23:13:42 +02:00
jespergravgaard
198f4ee55f Optimized constant handling in pass 1. 2019-09-29 22:42:37 +02:00
jespergravgaard
bfdd2fb0a5 Optimizing constant detection - avoiding versions. 2019-09-29 22:36:02 +02:00
jespergravgaard
032f9d079e Completed refactoring of Variable class to use StorageStrategy. 2019-09-29 21:53:44 +02:00
jespergravgaard
f09e4da4d4 Fixed struct tests 2019-09-29 20:59:38 +02:00
jespergravgaard
587027397d Variable storage strategy implementation almost done. 2019-09-29 20:57:28 +02:00
jespergravgaard
688a36b6d7 Added fragment synths for Travis Fisher and Clay Cowgill. 2019-09-29 17:48:20 +02:00
Jesper Gravgaard
d88789ab27 Added fragment for Clay Cowgill 2019-09-29 11:12:52 +02:00
Jesper Gravgaard
c6604e1d75 Added fragment for Clay Cowgill 2019-09-29 10:57:20 +02:00
jespergravgaard
bf01ce2f50 master commit 2019-09-29 10:43:42 +02:00
jespergravgaard
e5e57aa714 PHI-version and INTERMEDIATE working on storage strategy! 2019-09-29 09:30:22 +02:00
Jesper Gravgaard
97b83a929a Working on storage strategy replacing booleans. #328 2019-09-29 09:19:31 +02:00
jespergravgaard
5d0fe66906 Eliminated VariableUnversioned. 2019-09-28 08:44:04 +02:00
jespergravgaard
51d3d8e7d5 Eliminated VariableVersion. 2019-09-27 23:37:24 +02:00
jespergravgaard
dd2b23bc33 Eliminated VariableIntermediate. 2019-09-27 22:31:46 +02:00
jespergravgaard
a749cce83d Added test with a memory variable pointer. Illustrates how it would be better to make "real" memory variables instead of pointers to ... #328 2019-09-27 19:51:26 +02:00
Jesper Gravgaard
a450da9123 Fixed tests. #328 2019-09-26 15:05:50 +02:00
Jesper Gravgaard
b83ab7d402 Added another test. #328 2019-09-26 14:53:33 +02:00
Jesper Gravgaard
5652a11131 Implemented memory variable data output. Initialization can still be optimized. #328 2019-09-26 14:35:02 +02:00
jespergravgaard
5ddb1e9507 Added pointify step. Still need to output the var to memory. #328 2019-09-26 10:01:48 +02:00
jespergravgaard
3ede41bab1 Added pointify step. Still need to output the var to memory. #328 2019-09-26 10:01:27 +02:00
jespergravgaard
f696f8db18 Added test declaring a memory-variables. #328 2019-09-24 08:55:06 +02:00
jespergravgaard
d312edf024 Added keyword for declaring memory-variables and properties on variable type. #328 2019-09-24 07:58:48 +02:00
jespergravgaard
7a59390644 Fixed recursion checking in loop depth analysis. #316 2019-09-23 23:06:55 +02:00
jespergravgaard
bf9a414099 Java no long does infinite recursion if the C-code does. #316 2019-09-23 22:42:07 +02:00
Jesper Gravgaard
665b9adbfb Added constant for return value offset on stack. Added padding when return value is larger than parameters. Improved calculations of stack frame sizes. #316 2019-09-23 17:53:23 +02:00
jespergravgaard
2b36c5c18b Fixed parameter push type sizes. #316 2019-09-23 08:30:18 +02:00
jespergravgaard
a11929dbd3 Renamed stack pull/push/idx - including fragments. #316 2019-09-23 07:42:13 +02:00
jespergravgaard
cbec257332 Results are now pushed. #316 2019-09-23 00:10:44 +02:00
jespergravgaard
6540d60e60 Fixed clobber-problem with stack-parameter-passing return-values. Results are still not pushed. #316 2019-09-22 23:12:19 +02:00
jespergravgaard
dc08f86302 Working on stack-parameter-passing. Split calls into prepare/execute/finalize. Still some clobber problems and results are not pushed. #316 2019-09-22 22:20:45 +02:00
jespergravgaard
bcddd821ff Renamed stack-manipulating fragments. Added fragment-based stack clean-up. #316 2019-09-20 16:27:50 +02:00
Jesper Gravgaard
5e1c05dc2e Added stack clean-up. Added parameter stack fetch type. #316 2019-09-20 14:19:43 +02:00
jespergravgaard
c6a5c54909 Added test data. 2019-09-20 08:34:51 +02:00
jespergravgaard
4ed3621d9e Added STACK parameter push. #316 2019-09-20 08:18:32 +02:00
jespergravgaard
dfcc4beab2 Added first stack fragment. #316 2019-09-19 08:24:10 +02:00
jespergravgaard
25742f1654 Implemented most of stack based parameter fetching inside procedures. #316 2019-09-19 08:22:54 +02:00