Understanding compiler
#1

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?

Код:
call WTF
call Wat
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
Reply


Messages In This Thread
Understanding compiler - by Misiur - 21.08.2012, 17:57
Re: Understanding compiler - by Misiur - 28.08.2012, 13:27
Re: Understanding compiler - by MP2 - 28.08.2012, 14:52

Forum Jump:


Users browsing this thread: 1 Guest(s)