Understanding compiler - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Understanding compiler (
/showthread.php?tid=370914)
Understanding compiler -
Misiur - 21.08.2012
Hello. I've started playing with emit, and sometimes I start with normal pawn to understand how things work. And I came across thing I don't understand
Code which does nothing
pawn Код:
main() {
WTF();
Wat();
}
stock WTF() {}
stock Wat() {}
After compiling to asm:
Код:
CODE 0 ; 0
;program exit point
halt 0
proc ; main
; line 1
; line 2
break ; c
push.c 0
call WTF
;$exp
; line 3
break ; 20
push.c 0
call Wat
;$exp
zero.pri
retn
proc ; WTF
; line 6
zero.pri
retn
proc ; Wat
; line 8
zero.pri
retn
STKSIZE 1000
Wait, what?
This is my question. How the abstract machine can tell diffrence between Wat and WTF functions? Are there some additional things I can't see? Thanks
Re: Understanding compiler -
Misiur - 28.08.2012
bump
Re: Understanding compiler -
MP2 - 28.08.2012
This may be better off in 'discussion'.