32bit - 64bit portability

This is a discussion on 32bit - 64bit portability within the C++ Programming forums, part of the General Programming Boards category; Hello I have a lame question. Is there any way to make application that will run on 32bit system and ...

  1. #1
    l2u
    l2u is offline
    Registered User
    Join Date
    May 2006
    Posts
    630

    32bit - 64bit portability

    Hello

    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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,762
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User learning's Avatar
    Join Date
    May 2007
    Location
    australia
    Posts
    36
    depends what os you are on, for windows this information may be useful for you:
    http://msdn2.microsoft.com/en-us/library/ms952405.aspx
    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, 07: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 DeepBlackMagic 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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21