1) Firstly, size of the data type depends on the language. With C/C++,
since they are not platform independent, size of integer varies from
machine to machine.
2) With C/C++, the size depends on the underlying hardware
(architecture).
        Hardware    OS    Possible
       -----------------------------------------
         32             32         Yes
         32             64         No
         64             32         Yes
         64             64         Yes

So, basically, size of a data type in C/C++ depends on the
Smallest(Hardware, OS). Put in other words, since OS size has to be <=
hardware, technically, it boils down to the OS size.

If the compiler is 32 bit and OS is 64, then the compiler size takes
preference. Generally most 64 bit OS will emulate 32 bit OS, so old
legacy software can run on it.



On Aug 7, 12:38 am, hary rathor <[email protected]> wrote:
> in a 64 bit computer is that is capable of transfer 64 bit at a time
> 64 bit os means it capable of handle these 64 bit at time .but 32 it os use
> only half of bus
> so "theorytically not practically" 64 bit is 8 time faster than 32 bit os .
> and 64 bit os can address more ram  at time .
> cause of wide 64 bit address bus. this architecture is called x-64 based bit
> and 32 bit os is called x-86 based architecture.
> as we know that when be some compiler  are capable of install on both type
> of os 32 and 64. that compiler will use 32 bit based
> addressing system that result sizeof address 4 byte. if your compiler is
> completely build for 64 bit os that definitely it has to use
> 64 bit address lan that require 8 byte size integer size to hold this wide
> address.
>
> so there for 3 type of os is available in market
>
> x86
> x64
> x86 x64
>
> now Windows 8 will come with 128 bit addressing system
>
> i hope this can make you more clear

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to