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
#2

bump
Reply
#3

This may be better off in 'discussion'.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)