Thread: Porting

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    8

    Porting

    If you write a full program for kicks lets say a game. How much time on average does it take to port the game to Linux and Mac. Game is written C++ With OpenGL.

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    470
    In order to port a game like this it would require replacing all of the glue code between opengl and the api along with the native api calls. The platform specific stuff typically deals with threads, timers and datatypes, though there are probably more.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Considerably less time than if you'd used say DirectX

    If you've only used ANSI-C++, STL and OpenGL, then chances are the effort would be pretty minimal.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Let's say... it took you a month to write the program in the first place... Lets say you used mostly standard-portable C++, and multiplatform libraries... Let's say you already have experience writing OpenGL programs for the MAC and Linux. It should take you less than a week to port to each of the new platforms.

    Let's say you don't have experience with the MAC & Linux programming tools... It's probably going to take a month for each platform.

    Most commercial programs contain quite a bit of system-specific code. You've probably noticed that 90% of the programs at the computer store are available for only one platform, and those that are available for multiple platforms. This is a hint about how difficult it is to write large (or port) programs for multiple platforms.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    It's just another programming skill which you acquire along the way.

    Having written a program for X and ported to Y, you'll discover a lot of new information.

    With such experience, writing another program for X and porting to Y will be a much easier exercise
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Porting from VC6 to Linux Fedora core 5
    By g4j31a5 in forum C++ Programming
    Replies: 17
    Last Post: 08-08-2006, 01:59 AM
  2. porting application from 32 bit to 64 bit error
    By gandalf_bar in forum Linux Programming
    Replies: 1
    Last Post: 09-14-2005, 09:20 AM
  3. Porting code from VC++6 to VC .NET??
    By dug in forum C++ Programming
    Replies: 10
    Last Post: 01-31-2005, 11:42 AM
  4. Porting to FreeBSD
    By Beastie in forum Linux Programming
    Replies: 1
    Last Post: 06-15-2003, 07:37 PM
  5. Porting app from c to c++
    By GUI_XP in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2002, 03:31 PM