Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Porting from Linux to MacOS



> From: email@hidden
> Organization: 666Mhz
> Reply-To: email@hidden
> Date: Mon, 18 Dec 2000 09:38:02 -0500
> To: email@hidden
> Subject: Porting from Linux to MacOS
>
> Hi,
> I'm currently devellopping programs on linux... I always had macintoshes at
> home but I bought a PC for devellopping under linux... Now I would like to
> port
> my OpenGL programs to the Macintosh... I have a version of CodeWarrior, with
> powerplant and such things, but I never really programmed on the macintosh...
>
> My C++ code is supposedly open platform, standard, etc...
> What are the things I should know in order to port my program to the MacOS?
> I already have a hand on OpenGL SDK from apple...
>
> Thanks,
> Simon
> --

The number one issue is byte swapping. Far too many people assume that 16
and 32 bit values can be read from a file directly into int's and short's.
This is no longer the case. The bytes are reversed on PowerPC/680x0
processors. (Floats and doubles too).

Burger


References: 
 >Porting from Linux to MacOS (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.