1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-26 18:29:54 +00:00
Commit Graph

2955 Commits

Author SHA1 Message Date
jespergravgaard
11c86793d3 Ensured we do not coalesce across segments. 2023-04-23 23:25:28 +02:00
jespergravgaard
606ea29132 Moved calling distance to bank. 2023-04-23 22:20:13 +02:00
jespergravgaard
8b7afa4ad0 Procedure.bank is now never null. 2023-04-23 22:04:23 +02:00
jespergravgaard
8c7a144579 Refactored calling distance. 2023-04-23 21:07:16 +02:00
jespergravgaard
eb69af8fe7 Refactored calling convention. 2023-04-23 20:54:22 +02:00
jespergravgaard
9f3ca81e6a Refactored proximity. 2023-04-23 20:37:37 +02:00
jespergravgaard
2b1bc3c11d Increased complexity of examples. Fixed A-clobber problems. 2023-04-23 16:00:52 +02:00
jespergravgaard
35b6395f02 Merge branch 'master' into far-call-isolated-updates 2023-04-23 11:55:21 +02:00
jespergravgaard
291ce871c4 Working on far call merge. 2023-04-23 11:54:47 +02:00
Jesper Balman Gravgaard
712b044350 Merge branch '821-asm-byte-expressions' into 'master'
Treating ASM bytes as expressions.

Closes #821

See merge request camelot/kickc!46
2023-04-23 08:30:47 +00:00
jespergravgaard
04c507d047 Merge branch '821-asm-byte-expressions' into far-call-isolated-updates 2023-04-23 10:10:11 +02:00
jespergravgaard
54aa66b96e Treating ASM bytes as expressions. 2023-04-23 10:09:42 +02:00
jespergravgaard
9f75ffdb2a Merging far-call-isolated. 2023-04-23 09:55:20 +02:00
jespergravgaard
93dac7a14c Merge branch 'master' into far-call-isolated
# Conflicts:
#	pom.xml
#	src/main/antlr4/dk/camelot64/kickc/parser/KickCParser.g4
#	src/main/java/dk/camelot64/kickc/preprocessor/CPreprocessor.java
2023-04-23 09:44:05 +02:00
Flight_Control
4aeed59d0e - Code improvements for CallingDistance and CallingProximity 2023-04-18 10:15:23 +02:00
Flight_Control
3735b248c3 - Objects.equals(bankLocation, procedure.bankLocation) 2023-04-18 08:36:22 +02:00
Flight_Control
23903b34c6 - Removed TODO 2023-04-18 08:02:39 +02:00
Flight_Control
663a439c34 - Updated test cases 2023-04-14 08:00:31 +02:00
Flight_Control
70012690dd Revert "- Resolved issue of nobank without parameters. Now it works ... The CPreprocessor adds () and the KickCParser.g4 demands brackets as part of the syntax. But you can write without in the code. - Retested all test cases."
This reverts commit 82a6c56e
2023-04-13 13:07:30 +02:00
Jesper Balman Gravgaard
33e33cf543 Merge branch '816-pragma-without-parameters' into 'master'
#816 Pragma with no parameter and no parenthesis

Closes #816

See merge request camelot/kickc!45
2023-04-12 06:04:32 +00:00
jespergravgaard
2478ea034f #816 Pragma with no parameter and no parenthesis 2023-04-12 07:50:52 +02:00
Sven Van de Velde
3916ee3413 - Fixed a silly mistake where the banked close call fragment sequence was wrong. I first need to read the current bank, store it in the stack, then change the current bank. After jsr return, pop the old bank from the stack and store it. 2023-04-12 07:35:45 +02:00
Sven Van de Velde
02d9eaf081 - Added banking signature to procedures in the comments of the assembler output file.
- Update test cases and reference data.
- Cleaned old test cases for stack calls.
2023-04-12 06:57:25 +02:00
Sven Van de Velde
82a6c56e0a - Resolved issue of nobank without parameters. Now it works ... The CPreprocessor adds () and the KickCParser.g4 demands brackets as part of the syntax. But you can write without in the code.
- Retested all test cases.
2023-04-11 21:48:26 +02:00
Sven Van de Velde
5c5ffd2736 - Removed unnecessary tests and logic for bank directive parsing.
- Retested all test cases.
2023-04-11 14:44:35 +02:00
Sven Van de Velde
477499b97b - Fixed #pragma nobank parameter issue.
- Optimized logic for #pragma bank.
- Updated test cases and references.
- Made #pragma NAME parameters optional.
- Retested all test cases.
2023-04-11 13:41:14 +02:00
Sven Van de Velde
acbf8f073f - Updated test case references. 2023-04-11 10:41:10 +02:00
Sven Van de Velde
0393958154 Merge remote-tracking branch 'origin/far-call-isolated' into far-call-isolated-#508 2023-04-11 10:14:10 +02:00
Sven Van de Velde
8bb0ae904f - processed some of the comments.
- documentation fixes.
2023-04-11 10:13:41 +02:00
Jesper Balman Gravgaard
e7d717e915 Apply 2 suggestion(s) to 2 file(s) 2023-04-11 08:02:06 +00:00
Jesper Balman Gravgaard
8b7beac0c1 ok 2023-04-11 07:42:41 +00:00
Sven Van de Velde
9cf5f4cd05 Merge commit 'f2bf3484ad84a75f644a47560f1d2a0dd42c1acd' into jesper_baseline_all_changes
(cherry picked from commit 74512e132625e2e4f8f0ae3a80beae043dcc642d)
2023-04-11 09:00:46 +02:00
Sven Van de Velde
f2bf3484ad - testing and regeneration of fragment references
- implementation of near, close, far through AsmFragmentSignature
- fragment consolidation (removal of prepare, execute, finalize)
- stackcall banked throws error + test cases
- overall test cases for phi
- implementation of fragments
2023-04-11 08:35:53 +02:00
Sven Van de Velde
b62430bfc3 - near, close, far implementation using fragments for phi calls
- fragment consolidation
- removal of platform
- stackcall banked throws error
- testing
2023-04-11 08:35:18 +02:00
Sven Van de Velde
a52b5dc4a9 Banking progress
(cherry picked from commit d0abf45529c34e14ed3ce43b9be3a140f78bc4a9)
2023-04-10 07:22:06 +02:00
Sven Van de Velde
c550a122da Banking progress
(cherry picked from commit b98f95facff43c7a0bb8f9e9f902b49cc10ef4fe)
2023-04-10 07:19:35 +02:00
Jesper Balman Gravgaard
adb9688acb Merge branch '814-upgrade-java' into 'master'
Resolve "Upgrade to Java 17 - and upgrade libraries"

Closes #814

See merge request camelot/kickc!42
2023-04-06 07:08:26 +00:00
jespergravgaard
7b1b3d3708 Merge branch 'master' into 814-upgrade-java 2023-04-06 08:55:27 +02:00
jespergravgaard
a12a211d70 #814 Upgrade to Java 17 plus upgraded libraries. 2023-04-06 08:44:31 +02:00
Jesper Balman Gravgaard
7e0986196e Merge branch '372-varcall-progress' into 'master'
Working on #372 varcall. Fixed problem with returning a struct by value.

See merge request camelot/kickc!37
2023-04-05 15:32:31 +00:00
jespergravgaard
271163a25f Merge branch 'master' into 372-varcall-progress 2023-04-05 17:17:16 +02:00
Flight_Control
1499f8cecc - Added javadoc documentation in Bank.java.
- Added reworked procedure-callingconvention-phi-bank-5.c to reflect a good banking example for the documentation.
- Update ref for test cases.
2023-04-05 13:10:18 +02:00
Flight_Control
bdc4e28d0a - Fixed test cases going in error.
- Optimized test cases and documented them properly.
- Remove obscolete ref data.
2023-04-04 23:31:56 +02:00
Jesper Balman Gravgaard
f864f61be2 Merge branch 'add-union-initializer-c99-syntax' into 'master'
Implemented C99 compatible union initializer method, using .member= syntax...

See merge request camelot/kickc!40
2023-04-04 20:35:44 +00:00
Flight_Control
b13262beb8 - Added test cases.
- Merged remaining code change that is not in master remote.
2023-04-04 20:11:09 +02:00
Flight_Control
a6b021aaf0 Merge branch 'jesper_baseline' into far-call-isolated-#508
# Conflicts:
#	src/main/java/dk/camelot64/kickc/model/symbols/Procedure.java
#	src/main/java/dk/camelot64/kickc/passes/Pass0GenerateStatementSequence.java
2023-04-04 20:03:15 +02:00
Flight_Control
5bd84e7812 - Added test cases.
- Checked asm outputs.
- banking is only implemented for the cx16 for now.
2023-04-04 19:36:11 +02:00
jespergravgaard
f2b9b5bde7 FlightControl fix for #678. Improved doc. 2023-04-04 13:18:58 +02:00
jespergravgaard
b85e6fc715 FlightControl fix for #678. 2023-04-04 13:11:36 +02:00
jespergravgaard
3c52043744 FlightControl fix for #678. 2023-04-04 12:54:28 +02:00