[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Bytecode
- From: Dimiter 'malkia' Stanev <malkia@...>
- Date: Tue, 06 Dec 2011 09:51:04 -0800
On 12/6/2011 4:42 AM, steve donovan wrote:
On Tue, Dec 6, 2011 at 2:37 PM, Dirk Laurie<email@example.com> wrote:
Lua bytecode is portable (a) across the same major.minor release (b)
and provided that the compiling machine and the target machine have
the same number of bytes per integer?
You forgot byte order. Not only big vs little endian! I've worked
with ARMs where the doubles were _mixed_ endian...
LOL! Middle endian... A coworker last year brought me some motion
capture data, that we had to process with Python and feed to
MotionBuilder - after some digging (binary data) I found out... it was
middle endian single floats. Hopefully 0x3F000000 is easy one to
recognize, and knowing some alignment requirments got us there.