[quake3-bugzilla] [Bug 4977] x86 qvm improvements
bugzilla-daemon at icculus.org
bugzilla-daemon at icculus.org
Mon May 16 07:23:22 EDT 2011
https://bugzilla.icculus.org/show_bug.cgi?id=4977
--- Comment #19 from Thilo Schulz <arny at ats.s.bawue.de> 2011-05-16 07:23:19 EDT ---
(In reply to comment #18)
> >why not allow syscalls to be optimized in the same way intra-VM-Calls are?
>
> It requires more complex asm code so I'm just skipped it for first time
Well, I think I fixed that requirement with my latest SVN commit on vm_x86.c,
specifically EmitCall(). Check it out and tell me whether I can remove the
check
> >Next thing I'm wondering why we need the jump tables built into the VM. Can't
> we just build the jused array in the first pass?
>
> "switch" statements may generate jump tables (stored in data segment), so jump
> address can be calculated during runtime execution only - i.e. not all jump
> labels can be referenced(->detected) during compilation passes
What do you need these jump labels for then, anyways?
You certainly cannot rely on them as a security feature, not even in
VM_MAGIC_VER2. Is it solely for the optimization pass?
--
Configure bugmail: https://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the quake3-bugzilla
mailing list