2019-09-18 21:00:30 +00:00
|
|
|
|
2020-10-05 20:58:02 +00:00
|
|
|
void main()
|
2020-06-27 19:18:00 +00:00
|
|
|
main: scope:[main] from
|
|
|
|
[0] phi()
|
|
|
|
[1] call malloc
|
2020-10-05 20:58:02 +00:00
|
|
|
[2] malloc::return#0 = malloc::return#2
|
2019-06-24 06:21:58 +00:00
|
|
|
to:main::@1
|
|
|
|
main::@1: scope:[main] from main
|
2020-10-05 20:58:02 +00:00
|
|
|
[3] main::buf1#0 = malloc::return#0
|
2020-06-27 19:18:00 +00:00
|
|
|
[4] call malloc
|
2020-10-05 20:58:02 +00:00
|
|
|
[5] malloc::return#1 = malloc::return#2
|
2019-06-24 06:21:58 +00:00
|
|
|
to:main::@2
|
|
|
|
main::@2: scope:[main] from main::@1
|
2020-10-05 20:58:02 +00:00
|
|
|
[6] main::buf2#0 = malloc::return#1
|
|
|
|
[7] *((byte*)main::buf1#0) = 'a'
|
|
|
|
[8] *((byte*)main::buf2#0) = 'b'
|
|
|
|
[9] *SCREEN = *((byte*)main::buf1#0)
|
|
|
|
[10] *(SCREEN+1) = *((byte*)main::buf2#0)
|
2019-06-24 06:21:58 +00:00
|
|
|
to:main::@return
|
|
|
|
main::@return: scope:[main] from main::@2
|
2020-06-27 19:18:00 +00:00
|
|
|
[11] return
|
2019-06-24 06:21:58 +00:00
|
|
|
to:@return
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2020-10-05 20:58:02 +00:00
|
|
|
void* malloc()
|
2019-06-24 06:21:58 +00:00
|
|
|
malloc: scope:[malloc] from main main::@1
|
2020-10-05 20:58:02 +00:00
|
|
|
[12] heap_head#11 = phi( main/(byte*) 49152, main::@1/heap_head#12 )
|
|
|
|
[13] heap_head#12 = ++ heap_head#11
|
|
|
|
[14] malloc::return#2 = (void*)heap_head#12
|
2019-06-24 06:21:58 +00:00
|
|
|
to:malloc::@return
|
|
|
|
malloc::@return: scope:[malloc] from malloc
|
2020-06-27 19:18:00 +00:00
|
|
|
[15] return
|
2019-06-24 06:21:58 +00:00
|
|
|
to:@return
|