[fpc-pascal] fpc assember does not generate short jumps.

Саша Иваненко kitovyj at mail.ru
Wed Oct 22 10:46:42 CEST 2008


I have an assembler procedure of about a 1500 lines of code.  The problem is the jumps are generated with absolute addresses only, even if I explicitly specify 
"short" postfix. Why is it? The code size is critical for me. I am using lazarus with fpc 2.2.2. Example code:

sub eax,dword ptr [esp]
add esp,04h
cmp eax,0FFFh
jbe short @not_traced // JBE 0xABSOLUTE_ADDRESS GENERATED - WHY???!!!
popad
popad
retn
@not_traced: 

Any suggestions? Thank you.




More information about the fpc-pascal mailing list