man this is too big of a page to go thru...
so tell as both (OS nd pro) are 64 bit why is ptr size 4 bytes?
nd also does it depend on all 3 : OS, processor, compiler ?

Shashank Jain
IIIrd year
Computer Engineering
Delhi College of Engineering



On Thu, Aug 4, 2011 at 11:57 AM, Dipankar Patro <[email protected]> wrote:

> there absolutely nothing wrong in your interpretation.
> here is a link that might help :
> http://www.unix.org/whitepapers/64bit.html
>
>
> On 4 August 2011 11:18, Shashank Jain <[email protected]> wrote:
>
>> see dipankar, i hv 64 bit OS nd processor bt i dont know abt the compiler.
>> nd yeah size of int is 4 bytes. so tell me where im interpreting wrong?
>>
>> Shashank Jain
>> 3rd year, Computer Engg.
>> Delhi College of Engineering
>>
>>
>>
>> On Thu, Aug 4, 2011 at 11:16 AM, Dipankar Patro <[email protected]>wrote:
>>
>>> This has been a hot topic of discussion for a long time. But I found
>>> there are two things to look into it:
>>>
>>> 1. a 64 bit OS is one, which has 64 bit address handling capacity. and a
>>> 64bit processor is one which can perform operations on 64 bit data. A
>>> general concept that actually gets overlooked by many. Even I was confused
>>> with differences of 64 bit OS and Processors a while back.
>>>
>>> 2. if a compiler by it's own doesn't support 64 bit, it might be the case
>>> that even if you run on a 64 bit OS, size of int will be 4 bytes (32 bit).
>>>
>>> I think the best way to check out is to make a code on 64 bit compiler.
>>> If somebody has tried it please share the results.
>>>
>>> On 4 August 2011 10:38, Tushar Bindal <[email protected]> wrote:
>>>
>>>> never assume that he compiler is same as the OS you run. it may be that
>>>> you are running a 32-bit compiler
>>>>
>>>> I think pointers have size 4bytes on 8 byte compiler also - not sure.
>>>> someone please correct me.
>>>>
>>>>
>>>> On Thu, Aug 4, 2011 at 10:26 AM, Shashank Jain <[email protected]>wrote:
>>>>
>>>>> the size of a pointer is showing 4 bytes in my 64-bit OS, which should
>>>>> have been 8 bytes. Correct me where i am wrong?
>>>>>
>>>>> Shashank Jain
>>>>> 3rd year, Computer Engg.
>>>>> Delhi College of Engineering
>>>>>
>>>>>  --
>>>>> 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.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Tushar Bindal
>>>> Computer Engineering
>>>> Delhi College of Engineering
>>>> Mob: +919818442705
>>>> E-Mail : [email protected]
>>>> Website: www.jugadengg.com
>>>>
>>>>
>>>>  --
>>>> 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.
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> ___________________________________________________________________________________________________________
>>>
>>> Please do not print this e-mail until urgent requirement. Go Green!!
>>> Save Papers <=> Save Trees
>>>
>>> --
>>> 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.
>>>
>>
>>  --
>> 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.
>>
>
>
>
> --
>
> ___________________________________________________________________________________________________________
>
> Please do not print this e-mail until urgent requirement. Go Green!!
> Save Papers <=> Save Trees
>
> --
> 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.
>

-- 
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