Thread: 32bit - 64bit portability

  1. #1
    Registered User
    Join Date
    May 2006

    32bit - 64bit portability


    I have a lame question.
    Is there any way to make application that will run on 32bit system and also on 64bit system?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    The same way that 16 bit programs manage to run on 32 bit systems perhaps?

    To get more benefit, you need to recompile the code using a new compiler targeting the new processor. If you've written the code well enough, that is all you should need to do.

    However, there's usually some fixing to be done along the way.

    Tools like lint can warn you about portability problems.
    Also, the newer visual studio compilers are also able to warn about potential portability problems in advance, so you can start fixing them in preparation for the future.
    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.

  3. #3
    Registered User learning's Avatar
    Join Date
    May 2007
    depends what os you are on, for windows this information may be useful for you:
    at night uv comes alive

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Portability of executalbe and library files
    By lehe in forum C++ Programming
    Replies: 1
    Last Post: 03-05-2009, 08:47 PM
  2. i need a non .net 64bit windows compiler
    By learning in forum C++ Programming
    Replies: 30
    Last Post: 05-18-2007, 06:47 PM
  3. prog runs on 64bit - seg faults on 32bit
    By hollie in forum C Programming
    Replies: 13
    Last Post: 12-08-2006, 01:59 AM
  4. Cross Platform Compatible 64Bit And 8Bit Integer
    By Geolingo in forum C++ Programming
    Replies: 5
    Last Post: 01-14-2005, 04:35 AM
  5. Program Portability (code portability)
    By Perica in forum C++ Programming
    Replies: 2
    Last Post: 11-10-2002, 10:03 AM