Re: nessus and the AMD64
"Gene C." <[email protected]>
| Newsgroups | gmane.comp.security.nessus.devel |
|---|---|
| Message-ID | <[email protected]> |
On Saturday 24 January 2004 13:16, Michel Arboi wrote: > "Gene C." <[email protected]> writes: > > 1. On the AMD64 pointers are 8 bytes and size_t is also 8 bytes. > > On the i386 pointers are 4 bytes and size_t is also 4 bytes. On > > both systems, the size of int is 4 bytes and the size of long int > > is 8 bytes. > > Unless you use a very exotic compiler, sizeof(long) == 4 on i386 > sizeof(long long) == 8 Compiler is gcc 3.3.2 You are correct about sizeof(long) on the i386. On the x86_64, sizeof(long) == 8 and sizeof(long long) == 8 so I guess I could use "long" variables instead of "size_t" variables since they also follow the pointer size. To me, this means I could use "long" variables and have them "do the right thing" ... is that the way you understand it? -- Gene _______________________________________________ Nessus-devel mailing list [email protected] http://mail.nessus.org/mailman/listinfo/nessus-devel