1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-26 03:32:23 +00:00
Commit Graph

2015 Commits

Author SHA1 Message Date
jespergravgaard
20b596d98b Closes #368 2020-03-12 05:58:14 +01:00
jespergravgaard
c958f7e781 Added -vasmout option that shows the stdout output from KickAsm during compilation. 2020-03-12 05:56:57 +01:00
jespergravgaard
d1ec933032 Fixed error in recursive caller code. 2020-03-08 23:26:49 +01:00
jespergravgaard
0e58165f3a Improving implementation. 2020-03-08 22:43:00 +01:00
jespergravgaard
c0b0f063cc Implemented switchable effective live ranges. Started on "simple" which works for most programs - but fail for tetris, clearscreen and more. 2020-03-08 21:07:09 +01:00
jespergravgaard
7726c1d43f Refactored effectively alive vars into an interface for experimenting with less memory-intensive implementation. 2020-03-08 16:14:20 +01:00
jespergravgaard
afe8294cd1 Now auto-converting global variables modified inside a __stackcall procedure to load/store. 2020-03-08 12:57:32 +01:00
jespergravgaard
d217113afb Fixed multi-output of comments. 2020-03-08 09:43:12 +01:00
jespergravgaard
3b87c1a7c5 Restructured code to match call prepare/execute/finalize/parameter/return. 2020-03-08 09:06:39 +01:00
jespergravgaard
1836a9bd92 Finally eliminated copy visitor!
Refactored CallPhiParameters to modify the current control flow graph.
2020-03-07 22:38:40 +01:00
jespergravgaard
61a6e29f4d Added output 2020-03-07 21:43:42 +01:00
jespergravgaard
4af6d88907 Renamed passes 2020-03-07 19:44:37 +01:00
jespergravgaard
9e505c4d6e Merge remote-tracking branch 'origin/master' 2020-03-07 19:13:53 +01:00
jespergravgaard
e2cb37eaf3 Removed unneccesary condition. 2020-03-07 19:13:44 +01:00
Jesper Gravgaard
002c498810 Rewrote calling convention PHI return value pass. 2020-03-07 19:11:33 +01:00
jespergravgaard
f32f44cd92 Added missing test data. 2020-03-07 08:44:36 +01:00
jespergravgaard
2e934a7a30 Created StatementExprSideEffect. Converted call prepare to pushes. 2020-03-07 08:44:02 +01:00
jespergravgaard
7baacebc3d Created StatementExprSideEffect. Converted stack operations to this. 2020-03-07 08:08:54 +01:00
jespergravgaard
9e2e38e671 Moving __Stackcall stack operations back to pass 1/2 from pass 4 ASM code generation. 2020-03-07 00:33:07 +01:00
jespergravgaard
689aeb0ca6 Fixed problem with passing struck values to __stackcall. Closes #366 2020-03-06 09:38:09 +01:00
jespergravgaard
797c3bbd21 Moved calling convention stack handling to pass 1. Passing structs to __stackcall does not work atm. 2020-03-05 09:13:52 +01:00
jespergravgaard
c6f81595fb Added support for %E in linker scripts expanding to the name of the entry point label starting the program (ie. __bbegin). __bbegin handling could still use some love. 2020-03-03 08:58:31 +01:00
jespergravgaard
2c177dd45f Fixed passing of value lists as return values. Fixed problems with clobbering in return/call return value fetch. 2020-03-03 01:25:02 +01:00
jespergravgaard
2427720581 Fixed problem where unused parameters were eliminated. 2020-03-02 20:56:04 +01:00
jespergravgaard
25279aead3 Fixed problem with live variables and stack calls. 2020-03-02 09:21:31 +01:00
jespergravgaard
5d7533de5d Added test illustrating variable alive range propagation problem when using call stack. 2020-03-01 23:02:07 +01:00
jespergravgaard
7720eb8c13 Added tests illustrating stack call live range problems. 2020-03-01 17:05:54 +01:00
jespergravgaard
648d08a13d Added proper clobber check to call prepare sub-statements. Fixed stack clean-up after stack call return. 2020-03-01 16:00:42 +01:00
jespergravgaard
4346790c43 Fixed failing test. 2020-02-28 00:16:12 +01:00
jespergravgaard
ce7e6d29cb Added missing fragments. Handling inlined procedures. 2020-02-28 00:11:33 +01:00
Jesper Gravgaard
378798d6ba Added missing stack fragments. 2020-02-27 19:35:43 +01:00
Jesper Gravgaard
c44cb02b96 Fixed parameter offsets on stack by reversing order. 2020-02-27 13:26:30 +01:00
Jesper Gravgaard
c3c2999381 Refactored dominator calculation to happen scope by scope. 2020-02-27 12:48:23 +01:00
jespergravgaard
4ef4d178b6 Added commandline option for specifying calling convention. 2020-02-27 07:22:22 +01:00
jespergravgaard
e1e17f6152 Fixed type inference for StackIdxValue. Added a few missing stack fragments for __stackcall with pointers. 2020-02-26 11:44:15 +01:00
jespergravgaard
ee18c2c414 Added some missing fragments. 2020-02-26 11:00:08 +01:00
jespergravgaard
5e6ac1a0cd Fixed error in vae_model settings parser. 2020-02-26 00:13:03 +01:00
jespergravgaard
7135c08d6f Updated version number. 2020-02-25 22:16:54 +01:00
jespergravgaard
946144135a Added command line support for var_model(). 2020-02-25 22:15:39 +01:00
Jesper Gravgaard
b05a321d85 Merge remote-tracking branch 'origin/master' 2020-02-25 21:38:53 +01:00
Jesper Gravgaard
827f63c315 Added support for full var_models and var_models with default setting applied pre/post. 2020-02-25 21:38:29 +01:00
jespergravgaard
e9eeafd170 Fixed a few errors introduced by condition simplification rewrite. Added a fragment. 2020-02-25 09:26:05 +01:00
jespergravgaard
5fd74a8d39 Improved tetris code by inlining two kickasm-arrays. 2020-02-24 22:39:09 +01:00
jespergravgaard
19b145c207 Implemented immediate variables for preserving the value of load/store variables used in simple conditions that are inlined. #359 2020-02-23 20:57:53 +01:00
jespergravgaard
6862698fb7 Eliminated redundant methods got getting assignments/usages in Pass2SsaOptimization. 2020-02-23 19:26:53 +01:00
jespergravgaard
2961c84bd7 Working on improving the condition simplification. 2020-02-23 10:04:51 +01:00
jespergravgaard
5ffae4d92a Added C-source to generated test ASM. 2020-02-23 09:44:36 +01:00
jespergravgaard
dc6175a0b6 Working on fixing #359 problem with load/store variables and simple-conditionals. 2020-02-22 20:45:35 +01:00
jespergravgaard
d33c84488a Fixed a few tests. 2020-02-22 12:06:47 +01:00
jespergravgaard
7dacbb2c75 Fixed code for __ma. 2020-02-15 09:30:27 +01:00