2018-08-06 01:35:43 +00:00
====
TODO
====
2021-04-12 01:34:58 +00:00
2021-05-06 22:04:29 +00:00
- possible idea: option to mark vardecls 'shared' to indicate they should not be optimized away because they're shared with assembly code?
However: who even needs variables declared in prog8 code that are only used by assembly???
- github issue: make strings no longer immutable? Deduplication selectable via command line switch?
2021-05-12 22:35:22 +00:00
IMPROVE DOCUMENTATION ABOUT STRINGS AND DEDUP.
2021-05-06 22:04:29 +00:00
2021-04-29 17:38:42 +00:00
- test all examples before release of the new version
2021-04-27 21:13:46 +00:00
- simplify cx16.joystick_get2() once this cx16 rom issue is resolved: https://github.com/commanderx16/x16-rom/issues/203
2021-04-12 21:02:32 +00:00
- c64: make the graphics.BITMAP_ADDRESS configurable (VIC banking)
- get rid of all other TODO's in the code ;-)
Low prio
^^^^^^^^
2021-04-29 22:09:15 +00:00
- see if we can remove more ".typeOrElse(DataType.UNDEFINED)"
2021-04-12 21:02:32 +00:00
- optimize several inner loops in gfx2 even further?
- add modes 2 and 3 to gfx2 (lowres 4 color and 16 color)?
2021-02-07 18:08:47 +00:00
- add a flood fill routine to gfx2?
2021-01-16 17:09:47 +00:00
- add a f_seek() routine for the Cx16 that uses its seek dos api?
2021-04-12 21:02:32 +00:00
- refactor the asmgen into own submodule
- refactor the compiler optimizers into own submodule
2021-03-21 18:55:21 +00:00
- add a compiler option to not remove unused subroutines. this allows for building library programs. But this won't work with 64tass's .proc ...
2021-02-21 00:24:44 +00:00
- make it possible to use cpu opcodes such as 'nop' as variable names by prefixing all asm vars with something such as `` v_ ``
2020-03-21 23:43:46 +00:00
2019-01-24 01:43:25 +00:00
More optimizations
^^^^^^^^^^^^^^^^^^
Add more compiler optimizations to the existing ones.
2021-04-12 21:02:32 +00:00
- find a way to optimize if-statement codegen so that "if var & %10000" doesn't use stack & subroutine call, but also that the simple case "if X {...}" remains fast
- optimizer: detect variables that are written but never read - mark those as unused too and remove them, such as uword unused = memory("unused222", 20) - also remove the memory slab allocation
2020-10-02 20:37:52 +00:00
- further optimize assignment codegeneration, such as the following:
2021-02-15 03:41:33 +00:00
- rewrite expression code generator to not use eval stack but a fixed number of predetermined value 'variables' (1 per nesting level?)
2020-10-02 20:37:52 +00:00
- binexpr splitting (beware self-referencing expressions and asm code ballooning though)
2020-03-24 21:37:42 +00:00
- more optimizations on the language AST level
- more optimizations on the final assembly source level
2019-01-24 01:43:25 +00:00
2019-01-26 16:32:26 +00:00
2019-01-27 18:14:58 +00:00
Misc
^^^^
2019-08-11 16:21:15 +00:00
Several ideas were discussed on my reddit post
https://www.reddit.com/r/programming/comments/alhj59/creating_a_programming_language_and_cross/