Thread: 64-bit

  1. #1
    Newbie Crilston's Avatar
    Join Date
    Jun 2005
    Montreal, Canada


    I'm very concerned about 64-bit programming here and have a question. Are 64-bit processors faster with 64-bit integers or with 32-bit integers?

  2. #2
    Join Date
    Jun 2005
    according to some stuff i saw, 64bit processor handle 32bit just
    as well as a 32bit processor, but using 64bit can increase,
    not nessassarily, but can increase the speed of your applciation.
    Last edited by ILoveVectors; 08-11-2005 at 05:24 PM.

  3. #3
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    64-bit processors are just that. They fetch 64-bits at a time. Fetching 64 and discarding 32 on a 64 would incur the same performance hit that fetching 32 and discarding 16 does on current processors.

    Lesson to be learned: work with your processor and not against it in your code.

  4. #4
    Registered User
    Join Date
    Aug 2005
    UK - London
    so Bubba, they are faster then! :P

  5. #5
    Hardware Engineer
    Join Date
    Sep 2001
    At the processor / hardware level, 32-bit integers cannot exist on a 64-bit machine. Every time the processor reads or writes, it reads/writes 64 bits. Every memory address holds 64 bits.

    However, I think the operating system performs some data packing. If not, a char would eat-up 8 bytes (7 unused bytes). With all that wasted memory, you would need almost twice as much RAM in a 64-bit system as a 32-bit system.

    If data packing /unpacking is taking place in the background, it will slow-up operations (on smaller data types).

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