[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaJIT-2 on Mac OS X and FreeBSD x86-64
- From: Tony Finch <dot@...>
- Date: Mon, 25 Oct 2010 19:18:20 +0100
On Mon, 25 Oct 2010, Mike Pall wrote:
> Nope, this doesn't work. Address offsets in x86/x64 instructions
> are signed. And the JIT compiler folds the addresses of fixed
> objects (e.g. string constants) into offsets. This doesn't matter
> for 32 bit, since the address space wraps around at 4GB. But this
> means an object in the range 2GB-4GB may cause generated code to
> point to an invalid address on x64.
Ah I see!
Thanks for that and the other enlightening comments.
f.anthony.n.finch <firstname.lastname@example.org> http://dotat.at/
HUMBER THAMES DOVER WIGHT PORTLAND: NORTH BACKING WEST OR NORTHWEST, 5 TO 7,
DECREASING 4 OR 5, OCCASIONALLY 6 LATER IN HUMBER AND THAMES. MODERATE OR
ROUGH. RAIN THEN FAIR. GOOD.