prog8/docs/source/todo.rst

45 lines
2.1 KiB
ReStructuredText
Raw Normal View History

2018-08-06 01:35:43 +00:00
====
TODO
====
- add example in documentation for %asminclude and %asmbinary on how to refer to its contents via label or w/e
- test all examples (including imgviewer, assembler and petaxian) 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
- 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)"
- 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?
- add a f_seek() routine for the Cx16 that uses its seek dos api?
- 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 ...
- make it possible to use cpu opcodes such as 'nop' as variable names by prefixing all asm vars with something such as ``v_``
2019-01-24 01:43:25 +00:00
More optimizations
^^^^^^^^^^^^^^^^^^
Add more compiler optimizations to the existing ones.
- 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
- 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?)
- 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
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/