Thread: 64-bit programming

  1. #1
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Where circles begin.

    64-bit programming

    What is the difference in writing code for a 32-bit platform and a 64-bit platform. Are there new data types? Or will I just be able to use larger data types more often (since XP64,vista and 64-bit linux distros support much larger RAM sizes).

    My question is basically: how do you port code to 64-bit? what's the difference?

    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  2. #2
    Join Date
    Nov 2004
    apart from the different length numeric data types there's no fundamental difference between code for 16 and 32 bit compilers (not counting optional libraries depending on OS specific calls of course).
    I don't see why the situation should be any different when moving from 32 to 64 bits.

    Porting should therefore pretty much be restricted to making sure you're not relying on the length of numeric fields in for example mapping of memory structures.

    But I've not done it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  2. 64 bit programs
    By learning in forum C++ Programming
    Replies: 17
    Last Post: 05-10-2007, 11:26 PM
  3. A Question About Unit Testing
    By Tonto in forum C++ Programming
    Replies: 2
    Last Post: 12-14-2006, 08:22 PM
  4. Replies: 7
    Last Post: 12-10-2004, 08:18 AM
  5. bit patterns of negtive numbers?
    By chunlee in forum C Programming
    Replies: 4
    Last Post: 11-08-2004, 08:20 AM