Skip to content

Commit

Permalink
todo
Browse files Browse the repository at this point in the history
  • Loading branch information
irmen committed Nov 30, 2021
1 parent df997e5 commit a2860a7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions docs/source/todo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@ TODO

For next compiler release (7.4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Use GoSub to call subroutines (statements):
- [DONE] allow separate assigns to subroutine's parameter variables / registers
- [DONE] turn a regular subroutine call into assignments to the parameters + GoSub (take code from gosub branch)
- [DONE] also do this for asmsubs taking >0 parameters

Optimize Function calls in expressions:
- move args to assignments to params
- add tempvar immediately in front of expression with the fuction call
- replace the function call in the expression with the tempvar

...


Expand Down Expand Up @@ -48,8 +38,6 @@ Future

More code optimization ideas
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- find a way to optimize asm-subroutine param passing where it now sometimes uses the evalstack?
- find a way to let registerArgsViaStackEvaluation not use the stack anymore
- remove special code generation for while and util expression
by rewriting while and until expressions into if+jump (just consider them syntactic sugar)
but the result should not produce larger code ofcourse!
Expand Down

0 comments on commit a2860a7

Please sign in to comment.