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

1869 Commits

Author SHA1 Message Date
jespergravgaard
ae79e813a2 Added test copying struct value into array. 2020-02-02 23:41:26 +01:00
jespergravgaard
2ebf7b698b Added logging when postponing unwindings. 2020-02-02 23:06:59 +01:00
jespergravgaard
d096790786 Fixed missing BIN-file for NMI sample example code. Closes #357 2020-02-02 22:56:21 +01:00
jespergravgaard
3e5529c0f1 Added 2 complex struct copy tests. 2020-02-02 22:24:25 +01:00
jespergravgaard
ac02d1bbc2 Added missing fragments. 2020-02-02 15:49:20 +01:00
jespergravgaard
1fffef91f5 Added a bunch of complex struct copying tests. 2020-02-02 15:00:14 +01:00
jespergravgaard
9db24ceb01 Removed main return value 2020-02-02 10:24:44 +01:00
jespergravgaard
98ee476b5b Added another struct test. 2020-02-02 09:47:51 +01:00
jespergravgaard
d60a31f188 Merged memvars-328 into memvars-struct. 2020-02-02 09:12:49 +01:00
jespergravgaard
070380b4af Merge branch '328-memvars' into memvars-struct
# Conflicts:
#	src/test/java/dk/camelot64/kickc/test/TestPrograms.java
2020-02-02 09:06:31 +01:00
jespergravgaard
7707e64ad8 Adding Millfork Benchmarks to test suite. 2020-02-02 08:47:47 +01:00
jespergravgaard
4479efb22d Adding Millfork Benchmarks to test suite. 2020-02-01 19:07:52 +01:00
jespergravgaard
5203092d3a Updated to C types. 2020-02-01 10:54:51 +01:00
jespergravgaard
7665387333 Updated to C types. 2020-02-01 10:48:47 +01:00
jespergravgaard
bb3be5655c Updated to C types. 2020-02-01 10:38:53 +01:00
jespergravgaard
d51bfe5c66 Fixed test! 2020-01-20 23:33:25 +01:00
jespergravgaard
3b68c1b33e re-enabled test. 2020-01-20 21:41:14 +01:00
jespergravgaard
bcb617ef58 Removed offending test. 2020-01-20 06:51:13 +01:00
jespergravgaard
68b4794049 Optimized 32-bit plus 8-bit constant fragment. 2020-01-20 00:30:05 +01:00
jespergravgaard
d28bb8245b Changed fragment optimization _plus_2 to only be used for byte values. 2020-01-19 23:37:15 +01:00
jespergravgaard
06a2e00540 Added bulk unwinding for struct pointer derefs. 2020-01-19 22:10:02 +01:00
Jesper Gravgaard
7ea2453733 Refactored unwindings into separate classes for better reuse. 2020-01-19 19:50:04 +01:00
jespergravgaard
a32f783b74 Global struct values are not per default load/store, main-memory. 2020-01-12 22:53:57 +01:00
jespergravgaard
ffdc590b90 Fixed tests 2020-01-12 14:09:16 +01:00
jespergravgaard
a1f490ed49 Fixed tests 2020-01-12 12:28:23 +01:00
jespergravgaard
d5f4b1f690 Init-value of global load/store memory variables is now output directly into data-statements. 2020-01-11 14:55:27 +01:00
jespergravgaard
2eb5aaa24f Added support for init-value of global load/store memory variables. 2020-01-11 13:39:10 +01:00
jespergravgaard
030a379845 Struct values can now be bulk initialized / copied in assignments. Still needs work for global variables and more. 2020-01-09 00:30:16 +01:00
jespergravgaard
26be14f7ee Working on improvements regarding global initializers and unnecessary unwinding of constant structs. Moved most unwinding to separate package. 2020-01-07 08:28:57 +01:00
jespergravgaard
4eaa0c5385 Working on improvements regarding global initializers and unnecessary unwinding of constant structs. Moved most unwinding to separate package. 2020-01-07 00:25:47 +01:00
jespergravgaard
6a9f59cda1 Working on improvements regarding global initializers and unnecessary unwinding of constant structs. Introduced RValueUnwinding for handling a single value. 2020-01-02 14:36:02 +01:00
jespergravgaard
db595d0b53 Structs with array members finally working. However import improvements remain regarding global initializers and unnecessary unwinding of constant structs. 2020-01-02 00:31:29 +01:00
jespergravgaard
8ae248b1c2 Fixed a few error messages 2020-01-01 18:47:33 +01:00
jespergravgaard
7b81b51bc0 Rewrote constant identification to allow nested arrays/structs. TODO: function-as-array 2020-01-01 18:27:53 +01:00
Jesper Gravgaard
4af8b1a833 Added tests for initializing array inside struct using inline string and inline array initializer. 2019-12-29 15:05:24 +01:00
Jesper Gravgaard
2cf4a3c347 Added support for initializing & copying array inside struct using intrinsic memset/memcpy. 2019-12-28 22:33:52 +01:00
jespergravgaard
4bd3d4a6b1 Working on structs with arrays. 2019-12-28 02:14:05 +01:00
jespergravgaard
b72b2f5910 Fixing struct size for structs containing arrays. 2019-12-28 01:59:26 +01:00
jespergravgaard
e8a0478e5f Implemented C-classic struct functionality for loadstore struct variables. Works for most scenarios: declaration, initialization, assignment, member-access. Structs containing arrays not working yet. 2019-12-27 22:35:05 +01:00
jespergravgaard
3b043e11a7 Changed syntax for function signatures. 2019-12-26 09:51:41 +01:00
jespergravgaard
34ca539dd5 Add support for upper/lower case expansion of filename in linker script. Closes #345 2019-12-26 09:28:53 +01:00
jespergravgaard
08d268f130 Added some hardcoded address parameter tests. 2019-12-26 00:57:19 +01:00
jespergravgaard
655dc48b7b Added tests for __address(). VariableBuilder turns __address() into multiple-assignment. Fixed errors for multiple-assignment variables. 2019-12-26 00:17:01 +01:00
jespergravgaard
6ce7ac901e Added another volatile test. 2019-12-25 23:03:40 +01:00
jespergravgaard
32752eb4cb Improved C64 KERNAL loading example. 2019-12-25 20:26:03 +01:00
jespergravgaard
1e9162ca9c Added C64 KERNAL loading example. 2019-12-25 19:54:02 +01:00
jespergravgaard
849485efcc Added a few tests of volatile keyword. 2019-12-25 17:37:44 +01:00
jespergravgaard
c33794f776 Aligned error messages. 2019-12-25 17:10:40 +01:00
jespergravgaard
23a91ef3d3 Fixed volatile support. 2019-12-25 17:04:08 +01:00
jespergravgaard
0c19d01afd Added more nomodify support. 2019-12-24 12:59:51 +01:00