64-bit programming

This is a discussion on 64-bit programming within the A Brief History of Cprogramming.com forums, part of the Community Boards category; What is the difference in writing code for a 32-bit platform and a 64-bit platform. Are there new data types? ...

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

    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?

    -psychopath
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  2. #2
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    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-11-2007, 12:26 AM
  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

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