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

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

Ask a Question

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.