1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-25 21:29:25 +00:00
Commit Graph

659 Commits

Author SHA1 Message Date
Karol Stasiak
261486b3cd Don't enable -fsubroutine-extraction when using -Os or -Of 2019-06-26 19:07:25 +02:00
Karol Stasiak
14d6cf4d5c Fix stack overflow 2019-06-26 19:06:45 +02:00
Karol Stasiak
51599c9615 Allow defining free zeropage bytes instead of pointers 2019-06-26 18:33:59 +02:00
Karol Stasiak
c580ba33ea Fix nested #ifs 2019-06-26 18:31:45 +02:00
Karol Stasiak
fae64c52a1 Use const arrays on cartridge targets (2) 2019-06-26 18:13:00 +02:00
Karol Stasiak
892c9ec8ff Use const arrays on cartridge targets 2019-06-26 17:54:29 +02:00
Karol Stasiak
b80e46d755 Minor fixes 2019-06-26 17:06:55 +02:00
Karol Stasiak
32476f2a4e Move readkey to a separate module 2019-06-26 15:51:09 +02:00
Karol Stasiak
c9a65d5971 Added #define directive 2019-06-26 13:43:15 +02:00
Karol Stasiak
b85e175292 Use CBM_64_COMPAT for Commodore 128 2019-06-26 13:41:57 +02:00
Karol Stasiak
03f2bacd2b Add readkey and fix putchar for more targets. 2019-06-26 13:00:55 +02:00
Karol Stasiak
22cdd1c768 Z80: Fix stack variable optimizations when addresses of stack variables are taken (2) 2019-06-26 10:46:59 +02:00
Karol Stasiak
afa871abcf Z80: Fix stack variable optimizations when addresses of stack variables are taken 2019-06-26 02:11:53 +02:00
Karol Stasiak
a3b21c4810 8080: Use pointers instead of indexing when traversing an array in a loop 2019-06-26 01:56:32 +02:00
Karol Stasiak
8304650b3e 6502: Fix summing for-loops 2019-06-26 01:47:43 +02:00
Karol Stasiak
6cf746045f 8080/Z80: More optimizations 2019-06-26 01:47:03 +02:00
Karol Stasiak
507791bcaf Fix stack overflow 2019-06-26 01:46:31 +02:00
Karol Stasiak
f90d6afc43 8080: Fixed inlining of byte-sized variables into registers 2019-06-26 01:45:34 +02:00
Karol Stasiak
2ad43cf3b3 Update changelog 2019-06-25 18:26:48 +02:00
Karol Stasiak
2282e56845 6502: Faster summing for-loops 2019-06-25 18:23:31 +02:00
Karol Stasiak
260cfd50c4 Fix putword optimization 2019-06-25 18:19:57 +02:00
Karol Stasiak
e9e52d11a7 Add readkey for C64 & ZXS. Fix putchar('{q}') on C64. 2019-06-25 18:19:33 +02:00
Karol Stasiak
e394fe15c3 Add struct literals 2019-06-25 00:45:49 +02:00
Karol Stasiak
978d97cd7d Fix unused object detection 2019-06-25 00:26:52 +02:00
Karol Stasiak
d8defaad82 Fix and document for-each loops 2019-06-24 23:51:17 +02:00
Karol Stasiak
25c440f17d Add local arrays 2019-06-24 22:32:29 +02:00
Karol Stasiak
96b5918728 Clarify console output behaviour 2019-06-24 21:26:08 +02:00
Karol Stasiak
663e38c264 Optimizations:
– optimize multiplication and division by constants
– optimize multiplication, division and shifts for size
2019-06-24 15:20:39 +02:00
Karol Stasiak
8ea3957023 8080: optimize loads to HL 2019-06-24 15:18:44 +02:00
Karol Stasiak
15475b6886 Don't require -Os for code deduplication 2019-06-24 15:17:35 +02:00
Karol Stasiak
23b4b110a6 8080: optimize more pointless loads 2019-06-24 15:17:05 +02:00
Karol Stasiak
4dd470141a 6502: zero-extend the division result 2019-06-24 15:16:14 +02:00
Karol Stasiak
4654698891 8080: tail call optimization 2019-06-24 00:47:07 +02:00
Karol Stasiak
869211658a Division optimizations 2019-06-24 00:13:16 +02:00
Karol Stasiak
fbe20a240b 8080: Fix division 2019-06-24 00:13:02 +02:00
Karol Stasiak
0205520bf9 Allow taking addresses of stack variables 2019-06-23 22:53:42 +02:00
Karol Stasiak
f22b62e57f Z80: Fix stack variable inlining 2019-06-23 22:31:46 +02:00
Karol Stasiak
63c43c414a Various fixes related to the -> operator 2019-06-23 19:44:53 +02:00
Karol Stasiak
088b28989f Division by zero warnings 2019-06-23 19:44:34 +02:00
Karol Stasiak
7194bc1f1c More details on 8086 support (2) 2019-06-15 19:42:51 +02:00
Karol Stasiak
6e4e5863c6 More details on 8086 support 2019-06-15 01:44:04 +02:00
Karol Stasiak
f46466365b Compilation order should be decided by the import statements 2019-06-14 23:20:03 +02:00
Karol Stasiak
ba16021426 Allow using $$ instead of # in preprocessor directives 2019-06-14 15:33:17 +02:00
Karol Stasiak
ffff51dee9 6502: optimize variable pointers 2019-06-14 15:19:29 +02:00
Karol Stasiak
2a233930e8 8080: improve comparisons against constants 2019-06-14 15:19:13 +02:00
Karol Stasiak
51a6ec9d73 Preprocessor: add #use A=B and if(i,t,e) 2019-06-14 12:00:45 +02:00
Karol Stasiak
3852b2dbe9 More label file formats 2019-06-14 11:39:11 +02:00
Karol Stasiak
5ca6988039 Fix GB 2019-06-14 11:31:34 +02:00
Karol Stasiak
ecb366eafb Add the -i option 2019-06-14 11:28:26 +02:00
Karol Stasiak
50415714fa Detect the default include directiory when running the native executable 2019-06-13 00:16:45 +02:00