This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: size of bfd_vma
- From: Nick Clifton <nickc at redhat dot com>
- To: korbosli at webmails dot com
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 15 Jul 2005 14:41:11 +0100
- Subject: Re: size of bfd_vma
- References: <200507150938.j6F9c2np022810@mx2.redhat.com>
Hi Mohamed,
I have already dad a look to bfd/bfd-in.h and what I understood that the bfd_vma
type is defined as an "unsigned long" on 32 bits machine and as an "unsigned long
long" on 64 ones;
Am I correct?
Not quite. A bfd_vma is defined as a BFD_HOST_U_64_BIT type which is
computed by the configure script as whatever C type can hold an unsigned
64-bit value. Thus on a 32-bit host it will be a "unsigned long long"
and on a 64-bit host it will be an "unsigned long". Either way a
bfd_vma is a 64-bit unsigned value.
Cheers
Nick