[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Memory exaustion or size too large for index
From: |
Jaroslav Hajek |
Subject: |
Re: Memory exaustion or size too large for index |
Date: |
Thu, 25 Feb 2010 14:06:22 +0100 |
On Thu, Feb 25, 2010 at 2:02 PM, Carlo de Falco <address@hidden> wrote:
>
> On 25 Feb 2010, at 13:58, Jaroslav Hajek wrote:
>
>> #include <iostream>
>> #include <cstddef>
>> #define DUMPSIZE(TYPE) std::cout << "sizeof ("#TYPE") = " << sizeof
>> (TYPE) << '\n'
>> int main()
>> {
>> DUMPSIZE(int);
>> DUMPSIZE(unsigned int);
>> DUMPSIZE(long);
>> DUMPSIZE(unsigned long);
>> DUMPSIZE(long long);
>> DUMPSIZE(unsigned long long);
>> DUMPSIZE(size_t);
>> DUMPSIZE(ptrdiff_t);
>> DUMPSIZE(void *);
>> }
>>
>> It seems to me that in your case size_t is of size 4 and void * is of
>> size 8, which seems impossible.
>
> $ /opt/octave/3.3/bin/mkoctfile --link-stand-alone prova.cc
> $ ./a.out
> sizeof (int) = 4
> sizeof (unsigned int) = 4
> sizeof (long) = 4
> sizeof (unsigned long) = 4
> sizeof (long long) = 8
> sizeof (unsigned long long) = 8
> sizeof (size_t) = 4
> sizeof (ptrdiff_t) = 4
> sizeof (void *) = 4
>
Eh? So it's a 32-bit system?
--
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
- Re: Memory exaustion or size too large for index, (continued)
- Re: Memory exaustion or size too large for index, Carlo de Falco, 2010/02/25
- Re: Memory exaustion or size too large for index, Jaroslav Hajek, 2010/02/25
- Re: Memory exaustion or size too large for index, Carlo de Falco, 2010/02/25
- Re: Memory exaustion or size too large for index, Jaroslav Hajek, 2010/02/25
- Re: Memory exaustion or size too large for index, Carlo de Falco, 2010/02/25
- Re: Memory exaustion or size too large for index, Carlo de Falco, 2010/02/25
- Re: Memory exaustion or size too large for index, Jaroslav Hajek, 2010/02/25
- Re: Memory exaustion or size too large for index, Carlo de Falco, 2010/02/25
- Re: Memory exaustion or size too large for index, Jaroslav Hajek, 2010/02/25
- Re: Memory exaustion or size too large for index, Jaroslav Hajek, 2010/02/25
- Re: Memory exaustion or size too large for index,
Jaroslav Hajek <=
- Re: Memory exaustion or size too large for index, Carlo de Falco, 2010/02/25
- Re: Memory exaustion or size too large for index, Jaroslav Hajek, 2010/02/25
- Re: Memory exaustion or size too large for index, José Luis García Pallero, 2010/02/25
- Re: Memory exaustion or size too large for index, Jaroslav Hajek, 2010/02/25
- Re: Memory exaustion or size too large for index, Jaroslav Hajek, 2010/02/25
Re: Memory exaustion or size too large for index, Carnë Draug, 2010/02/25