1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-11-27 04:49:27 +00:00
Commit Graph

1548 Commits

Author SHA1 Message Date
Jesper Gravgaard
95f3b38e7c Merge remote-tracking branch 'origin/master' into 328-memvars 2019-10-10 08:44:41 +02:00
jespergravgaard
08da28e976 Added another test for literal number type detection in ternaries. #199 2019-10-09 16:43:02 +02:00
jespergravgaard
22139da54e Added long fragment. 2019-10-09 13:41:12 +02:00
jespergravgaard
ae7a0b6fe5 Added long fragment. 2019-10-09 09:30:11 +02:00
Jesper Gravgaard
9f523beeaf Eliminating ZP_BYTE/ZP_WORD/ZP_DWORD register calses & types. 2019-10-06 20:42:52 +02:00
Jesper Gravgaard
9877da213d Improved a few fragments. Moved to use the SymVar.isStorageXxx() methods. 2019-10-05 12:06:43 +02:00
jespergravgaard
358f6d0047 Added a few fragments. 2019-10-05 08:29:28 +02:00
jespergravgaard
6feeb0d842 Working on M/Z synth rules. 2019-10-04 00:20:17 +02:00
jespergravgaard
ec1087b876 Working on M/Z synth rules. 2019-10-04 00:00:41 +02:00
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