Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / April 2008



Tip: Looking for answers? Try searching our database.

PPC Big endian .v. x86 Little endian apps

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aaron Gray - 29 Apr 2008 11:01 GMT
I am porting Mozilla's SpiderMonkey to MacOSX. It has a cpu configuration
program 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.

I laster want to use MacOSX'es Javascript interpreter but I have legacy
extensions on SpiderMonkey that I need for now, until I get them converted..

Many thanks in advance,

Aaron
Heath Raftery - 30 Apr 2008 03:39 GMT
In comp.sys.mac.programmer.help Aaron Gray <ang.usenet@gmail.com> wrote:
> I am porting Mozilla's SpiderMonkey to MacOSX. It has a cpu configuration
> program

Do you mean 'configure' or something else?

> 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.

Signature

*--------------------------------------------------------*

| ^Nothing is foolproof to a sufficiently talented fool^ |
|    Heath Raftery, HRSoftWorks          _\|/_           |
*______________________________________m_('.')_m_________*
Aaron Gray - 30 Apr 2008 17:28 GMT
> In comp.sys.mac.programmer.help Aaron Gray <ang.usenet@gmail.com> wrote:
>> I am porting 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.
[quoted text clipped - 13 lines]
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.