q3asm miscompilation

Ludwig Nussel ludwig.nussel at suse.de
Sat Oct 29 08:38:18 EDT 2005


Hi,

The attached program miscompiles with q3asm. The syscall trap_Print
has number -1, the argument in the qvm however is 3 (look for 21 08
(OP_ARG 8) followed by 08 .. .. .. .. (OP_CONST) in the hex dump).
The offset seems to be constant. Ie if you use -2 it passed 2
instead. In larger programs it works though.

cu
Ludwig

-- 
 (o_   Ludwig Nussel
 //\   SUSE LINUX Products GmbH, Development
 V_/_  http://www.suse.de/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: miscompile.tar.gz
Type: application/x-tgz
Size: 668 bytes
Desc: not available
URL: <http://icculus.org/pipermail/quake3/attachments/20051029/4c2e4fc9/attachment.bin>


More information about the quake3 mailing list