Re: Luabind on Intel Macs
Tom McCubbin <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
I have to chime in on this as an old-timer. The so called endianness issue relates to the order of bytes in numbers. To clarify, imagine a 32 bit integer. This is made of 4 bytes ( 8 bits each of course: 4 * 8 = 32 ). Think of the number 4321. The four is the most significant number ( 4 thousand ) and the 1 the least significant ( only 1 ). There is no reason we need 'store' the number in memory like this. We could just as well rewrite the number in opposite order ( 4321 -> 1234 ) as long as we all agree on where the least significant number is placed, first or last. It is the same for big endian and little endian hardware. One writes the number 1234 in memory, and the other 4321. Furthermore, this is relevant at the hardware level and really has no bearing on the luabind library. What you may find is if you persist raw binary encoded numbers across hardware platforms such as the power5/sparc and intel platforms which have opposite endianness the numbers need to be adjusted when moved from platform to platform, or otherwise streamed across the net, hence the family of ntoh and hton family of byte swapping functions. (And to be a nit pick, most of the power 5 platforms can be reconfigured at boot time to be either endianness, its just apple chose to run it in network byte order like sun sparc, the opposite of intel hardware ) The only real issue for luabind on os X is not the endianness, but whether lua runs there, and whether the version of gcc on the target supports the features luabind uses. I haven't been very active on that platform for nearly a year, but I can only imagine that you will have no problems on current versions of OS X w/ up to date compilers. And to foam at the mouth for one more moment, luabind is an awesome binding library with excellent support so if you have any problem on OS X I'm sure you'll find a quick response on this list... -the old dude On Sat, Feb 6, 2010 at 12:07 PM, Tony Kostanjsek <[email protected]>wrote: > I've been using it since 0.7 on Intel Mac and never had any endianness > problems. > > > ----- Ursprüngliche Mail ---- > Von: Jesse A. <[email protected]> > An: [email protected] > Gesendet: Samstag, den 6. Februar 2010, 16:21:50 Uhr > Betreff: Re: [luabind] Luabind on Intel Macs > > > > Kristoffer Danielsson wrote: > > > > > > I'm running Windows 7 64-bit on a MacBook Pro. Probably not the same, but > > it works :) > > Thanks for the reply :) > > I'm not certain about this, but I think these are two different scenarios > (as you suggested). What I'm wondering about specifically is if there are > any endianness issues when building and using Luabind in OS X (and on an > Intel Mac). > -- > View this message in context: > http://old.nabble.com/Luabind-on-Intel-Macs-tp27480080p27480528..html > Sent from the Lua C++ Bind mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > luabind-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/luabind-user > > > __________________________________________________ > Do You Yahoo!? > Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz > gegen Massenmails. > http://mail.yahoo.com > > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the > business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > luabind-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/luabind-user > ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ luabind-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/luabind-user