Page 1 of 1

[mC V8 PIC] struct size limit

Posted: 08 Feb 2008 15:45
by bruno
Hello,

PIC18F4620 :

Code: Select all

typedef struct
        {
        char    buf[255] ;
        char    dummy ;
        } TEST ;
        
TEST    t ;

void main()
        {
        t.dummy = 0 ;
        }
I get a "not enough RAM t" error message

:arrow: struct size limit is not documented in manual
:idea: it would be great to have bigger struct on P18

Thanks !

Re: [mC V8 PIC] struct size limit

Posted: 09 Feb 2008 08:29
by rajkovic
bruno wrote:Hello,

PIC18F4620 :

Code: Select all

typedef struct
        {
        char    buf[255] ;
        char    dummy ;
        } TEST ;
        
TEST    t ;

void main()
        {
        t.dummy = 0 ;
        }
I get a "not enough RAM t" error message

:arrow: struct size limit is not documented in manual
:idea: it would be great to have bigger struct on P18

Thanks !
struct size is limited by memory organization only, we will document it.
internal ram of 8051 derivates are up to 128 bytes idata or data
some derivates have internal extended ram which goes up to few kB
and of course there can always be additional external ram which can have size up to 64kB, see memory organization section of help.

Posted: 10 Feb 2008 17:11
by bruno
Hello Ivan, thanks, but my report was for PIC :mrgreen:

Posted: 11 Feb 2008 09:52
by rajkovic
bruno wrote:Hello Ivan, thanks, but my report was for PIC :mrgreen:
:oops: