PPC Big endian .v. x86 Little endian apps

Discussion in 'Programmer Misc' started by Aaron Gray, Apr 29, 2008.

  1. Aaron Gray

    Aaron Gray Guest

    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
     
    Aaron Gray, Apr 29, 2008
    #1
    1. Advertisements

  2. Aaron Gray

    Aaron Gray Guest

    "Heath Raftery" <> wrote in message
    news:NZQRj.1102$...
    > In comp.sys.mac.programmer.help Aaron Gray <> 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.
    >>
    >> 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
     
    Aaron Gray, Apr 30, 2008
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. abz
    Replies:
    0
    Views:
    301
  2. Guest
    Replies:
    0
    Views:
    329
    Guest
    Nov 1, 2003
  3. Alexander Cohen

    64 Double little endian

    Alexander Cohen, Dec 2, 2004, in forum: Programmer Help
    Replies:
    1
    Views:
    327
    Brion Vibber
    Dec 3, 2004
  4. Aaron Gray

    PPC Big endian .v. x86 Little endian apps

    Aaron Gray, Apr 29, 2008, in forum: Programmer Help
    Replies:
    1
    Views:
    341
    Aaron Gray
    Apr 30, 2008
  5. abz
    Replies:
    1
    Views:
    598
  6. Andre Matuch
    Replies:
    7
    Views:
    215
    Neill Massello
    Jun 9, 2005
  7. Greg Shenaut
    Replies:
    3
    Views:
    435
    Ed Anson
    Jun 10, 2005
  8. Wes Groleau

    memtest x86 - PPC equivalent?

    Wes Groleau, Dec 6, 2006, in forum: Mac
    Replies:
    8
    Views:
    244
    Wes Groleau
    Dec 11, 2006
Loading...