mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-09-08 17:54:40 +00:00
Made dword value higher (>$80000000)
This commit is contained in:
parent
3d33851983
commit
9b09aaab14
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
dword a = 100000;
|
dword a = 4000000000;
|
||||||
for( byte i: 0..100) {
|
for( byte i: 0..100) {
|
||||||
dword b = a + i;
|
dword b = a + i;
|
||||||
byte c = (byte) b;
|
byte c = (byte) b;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
.pc = $80d "Program"
|
.pc = $80d "Program"
|
||||||
jsr main
|
jsr main
|
||||||
main: {
|
main: {
|
||||||
.const a = $186a0
|
.const a = $ee6b2800
|
||||||
.const SCREEN = $400
|
.const SCREEN = $400
|
||||||
.label b = 2
|
.label b = 2
|
||||||
ldx #0
|
ldx #0
|
||||||
|
@ -2,7 +2,7 @@ PARSING src/test/java/dk/camelot64/kickc/test/kc/dword.kc
|
|||||||
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
dword a = 100000;
|
dword a = 4000000000;
|
||||||
for( byte i: 0..100) {
|
for( byte i: 0..100) {
|
||||||
dword b = a + i;
|
dword b = a + i;
|
||||||
byte c = (byte) b;
|
byte c = (byte) b;
|
||||||
@ -13,7 +13,7 @@ void main() {
|
|||||||
|
|
||||||
STATEMENTS
|
STATEMENTS
|
||||||
proc (void()) main()
|
proc (void()) main()
|
||||||
(dword) main::a ← (dword/signed dword) 100000
|
(dword) main::a ← (dword) 4000000000
|
||||||
(byte) main::i ← (byte/signed byte/word/signed word/dword/signed dword) 0
|
(byte) main::i ← (byte/signed byte/word/signed word/dword/signed dword) 0
|
||||||
main::@1:
|
main::@1:
|
||||||
(dword~) main::$0 ← (dword) main::a + (byte) main::i
|
(dword~) main::$0 ← (dword) main::a + (byte) main::i
|
||||||
@ -48,7 +48,7 @@ INITIAL CONTROL FLOW GRAPH
|
|||||||
@begin: scope:[] from
|
@begin: scope:[] from
|
||||||
to:@1
|
to:@1
|
||||||
main: scope:[main] from
|
main: scope:[main] from
|
||||||
(dword) main::a ← (dword/signed dword) 100000
|
(dword) main::a ← (dword) 4000000000
|
||||||
(byte) main::i ← (byte/signed byte/word/signed word/dword/signed dword) 0
|
(byte) main::i ← (byte/signed byte/word/signed word/dword/signed dword) 0
|
||||||
to:main::@1
|
to:main::@1
|
||||||
main::@1: scope:[main] from main main::@1
|
main::@1: scope:[main] from main main::@1
|
||||||
@ -81,7 +81,7 @@ CONTROL FLOW GRAPH SSA WITH ASSIGNMENT CALL & RETURN
|
|||||||
@begin: scope:[] from
|
@begin: scope:[] from
|
||||||
to:@1
|
to:@1
|
||||||
main: scope:[main] from @1
|
main: scope:[main] from @1
|
||||||
(dword) main::a#0 ← (dword/signed dword) 100000
|
(dword) main::a#0 ← (dword) 4000000000
|
||||||
(byte) main::i#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0
|
(byte) main::i#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0
|
||||||
to:main::@1
|
to:main::@1
|
||||||
main::@1: scope:[main] from main main::@1
|
main::@1: scope:[main] from main main::@1
|
||||||
@ -144,7 +144,7 @@ Redundant Phi (dword) main::a#1 (dword) main::a#0
|
|||||||
Succesful SSA optimization Pass2RedundantPhiElimination
|
Succesful SSA optimization Pass2RedundantPhiElimination
|
||||||
Simple Condition (boolean~) main::$2 if((byte) main::i#1!=(byte/signed byte/word/signed word/dword/signed dword) 101) goto main::@1
|
Simple Condition (boolean~) main::$2 if((byte) main::i#1!=(byte/signed byte/word/signed word/dword/signed dword) 101) goto main::@1
|
||||||
Succesful SSA optimization Pass2ConditionalJumpSimplification
|
Succesful SSA optimization Pass2ConditionalJumpSimplification
|
||||||
Constant (const dword) main::a#0 = 100000
|
Constant (const dword) main::a#0 = 4000000000
|
||||||
Constant (const byte) main::i#0 = 0
|
Constant (const byte) main::i#0 = 0
|
||||||
Constant (const byte*) main::SCREEN#0 = ((byte*))1024
|
Constant (const byte*) main::SCREEN#0 = ((byte*))1024
|
||||||
Succesful SSA optimization Pass2ConstantIdentification
|
Succesful SSA optimization Pass2ConstantIdentification
|
||||||
@ -276,7 +276,7 @@ bend_from_b1:
|
|||||||
bend:
|
bend:
|
||||||
//SEG9 main
|
//SEG9 main
|
||||||
main: {
|
main: {
|
||||||
.const a = $186a0
|
.const a = $ee6b2800
|
||||||
.const SCREEN = $400
|
.const SCREEN = $400
|
||||||
.label b = 3
|
.label b = 3
|
||||||
.label c = 7
|
.label c = 7
|
||||||
@ -369,7 +369,7 @@ bend_from_b1:
|
|||||||
bend:
|
bend:
|
||||||
//SEG9 main
|
//SEG9 main
|
||||||
main: {
|
main: {
|
||||||
.const a = $186a0
|
.const a = $ee6b2800
|
||||||
.const SCREEN = $400
|
.const SCREEN = $400
|
||||||
.label b = 2
|
.label b = 2
|
||||||
//SEG10 [5] phi from main to main::@1 [phi:main->main::@1]
|
//SEG10 [5] phi from main to main::@1 [phi:main->main::@1]
|
||||||
@ -444,7 +444,7 @@ FINAL SYMBOL TABLE
|
|||||||
(byte*) main::SCREEN
|
(byte*) main::SCREEN
|
||||||
(const byte*) main::SCREEN#0 SCREEN = ((byte*))(word/signed word/dword/signed dword) 1024
|
(const byte*) main::SCREEN#0 SCREEN = ((byte*))(word/signed word/dword/signed dword) 1024
|
||||||
(dword) main::a
|
(dword) main::a
|
||||||
(const dword) main::a#0 a = (dword/signed dword) 100000
|
(const dword) main::a#0 a = (dword) 4000000000
|
||||||
(dword) main::b
|
(dword) main::b
|
||||||
(dword) main::b#0 b zp ZP_DWORD:2 22.0
|
(dword) main::b#0 b zp ZP_DWORD:2 22.0
|
||||||
(byte) main::c
|
(byte) main::c
|
||||||
@ -476,7 +476,7 @@ Score: 477
|
|||||||
//SEG8 @end
|
//SEG8 @end
|
||||||
//SEG9 main
|
//SEG9 main
|
||||||
main: {
|
main: {
|
||||||
.const a = $186a0
|
.const a = $ee6b2800
|
||||||
.const SCREEN = $400
|
.const SCREEN = $400
|
||||||
.label b = 2
|
.label b = 2
|
||||||
//SEG10 [5] phi from main to main::@1 [phi:main->main::@1]
|
//SEG10 [5] phi from main to main::@1 [phi:main->main::@1]
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
(byte*) main::SCREEN
|
(byte*) main::SCREEN
|
||||||
(const byte*) main::SCREEN#0 SCREEN = ((byte*))(word/signed word/dword/signed dword) 1024
|
(const byte*) main::SCREEN#0 SCREEN = ((byte*))(word/signed word/dword/signed dword) 1024
|
||||||
(dword) main::a
|
(dword) main::a
|
||||||
(const dword) main::a#0 a = (dword/signed dword) 100000
|
(const dword) main::a#0 a = (dword) 4000000000
|
||||||
(dword) main::b
|
(dword) main::b
|
||||||
(dword) main::b#0 b zp ZP_DWORD:2 22.0
|
(dword) main::b#0 b zp ZP_DWORD:2 22.0
|
||||||
(byte) main::c
|
(byte) main::c
|
||||||
|
Loading…
Reference in New Issue
Block a user