lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  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.