1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2025-07-29 22:24:43 +00:00

Removed old @begin / @end global blocks. Now using __start(), __init(). Closes #257

This commit is contained in:
jespergravgaard
2020-06-27 22:36:52 +02:00
parent 64d2d99488
commit c1b22d345e
1000 changed files with 21473 additions and 21494 deletions

View File

@@ -32,7 +32,7 @@ strlen::@return: scope:[strlen] from strlen::@3
to:@return
(void()) main()
main: scope:[main] from _start
main: scope:[main] from __start
(byte) loadFileToMemory::device#0 ← (number) 8
(byte*) loadFileToMemory::filename#0 ← (const byte*) main::filename
(byte*) loadFileToMemory::address#0 ← (const nomodify byte*) LOAD_SPRITE
@@ -167,13 +167,13 @@ load::@return: scope:[load] from load
return
to:@return
(void()) _start()
_start: scope:[_start] from
(void()) __start()
__start: scope:[__start] from
call main
to:_start::@1
_start::@1: scope:[_start] from _start
to:_start::@return
_start::@return: scope:[_start] from _start::@1
to:__start::@1
__start::@1: scope:[__start] from __start
to:__start::@return
__start::@return: scope:[__start] from __start::@1
return
to:@return
@@ -278,9 +278,9 @@ SYMBOL TABLE SSA
(const nomodify byte*) SPRITES_YPOS = (byte*)(number) $d001
(const nomodify word) SPRITE_PTRS = (word) $3f8
(const nomodify struct MOS6569_VICII*) VICII = (struct MOS6569_VICII*)(number) $d000
(void()) _start()
(label) _start::@1
(label) _start::@return
(void()) __start()
(label) __start::@1
(label) __start::@return
(void()) error((byte) error::err)
(label) error::@return
(byte) error::err
@@ -510,10 +510,10 @@ Simplifying expression containing zero SPRITES_YPOS in [24] *((const nomodify by
Successful SSA optimization PassNSimplifyExpressionWithZero
Eliminating unused constant (const bool) load::verify#0
Successful SSA optimization PassNEliminateUnusedVars
Removing unused procedure _start
Removing unused procedure block _start
Removing unused procedure block _start::@1
Removing unused procedure block _start::@return
Removing unused procedure __start
Removing unused procedure block __start
Removing unused procedure block __start::@1
Removing unused procedure block __start::@return
Successful SSA optimization PassNEliminateEmptyStart
Constant right-side identified [10] (word~) main::toSpritePtr1_$0 ← (const word) main::toSpritePtr1_$1 / (byte) $40
Successful SSA optimization Pass2ConstantRValueConsolidation