[quake3] q3asm miscompilation
ludwig.nussel at suse.de
Sat Oct 29 05:49:56 PDT 2005
Ludwig Nussel wrote:
> 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.
static const char buf = "hello world\n";
static const char* buf = "hello world\n";
(o_ Ludwig Nussel
//\ SUSE LINUX Products GmbH, Development
More information about the ioquake3