Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer > Re: PPC Big end...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 1005 of 1039
Post > Topic >>

Re: PPC Big endian .v. x86 Little endian apps

by "Aaron Gray" <ang.usenet@[EMAIL PROTECTED] > Apr 30, 2008 at 05:28 PM

"Heath Raftery" <hraftery@[EMAIL PROTECTED]
> wrote in message 
news:NZQRj.1102$pI4.551@[EMAIL PROTECTED]
> In comp.sys.mac.programmer.help Aaron Gray <ang.usenet@[EMAIL PROTECTED]
> wrote:
>> I am ****ting Mozilla's SpiderMonkey to MacOSX. It has a cpu
configuration
>> program
>
> Do you mean 'configure' or something else?

No the CPU config program jscpucfg, basically gets big endian/little
endian 
settings and int sizes and writes a .h file to the command line for 
redirection to jscpucfg.h.

>> which generates headers for the target machine and uses them in the
>> main build.
>>
>> What I am stuck on is how to get the main build either to use these 
>> specific
>> headers one for each build, or better to have some mechanism that is
>> designed to deal with this specifically for XCode.
>
> Might be worth checking out how XCode handles this in its normal builds.
> It is pretty slick.
>
> But that said, I know this has already been covered for SpiderMonkey.
> I can't remember the details, but check out the SpiderMonkey mailing
> list. I believe someone has posted an XCode project for both
> architectures. I recently updated my app, which links to SpiderMonkey,
> for Universal build, and once I looked up what had already been done,
> my part was quite easy.

Yes Carbon has some functions for native to bigendian/little endian. 
SpiderMonkey has structs that get defined differently on different 
archetectures.

I will follow this lead up.

Thanks,

Aaron
 




 3 Posts in Topic:
PPC Big endian .v. x86 Little endian apps
"Aaron Gray" &l  2008-04-29 11:01:05 
Re: PPC Big endian .v. x86 Little endian apps
Heath Raftery <hrafter  2008-04-30 02:39:41 
Re: PPC Big endian .v. x86 Little endian apps
"Aaron Gray" &l  2008-04-30 17:28:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 18:10:05 CDT 2008.