[mC V8 PIC] struct size limit

Discuss about beta versions of mikroC compiler.
Post Reply
Author
Message
bruno
Posts: 767
Joined: 10 Sep 2005 02:10
Location: Lyon, France
Contact:

[mC V8 PIC] struct size limit

#1 Post by bruno » 08 Feb 2008 15:45

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 !
Bruno
Bored with 7-segment ? Try the [url=http://www.micro-examples.com/public/microex-navig/doc/079-touchclock.html]TouchClock[/url]

User avatar
rajkovic
mikroElektronika team
Posts: 694
Joined: 16 Aug 2004 12:40

Re: [mC V8 PIC] struct size limit

#2 Post by rajkovic » 09 Feb 2008 08:29

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.

bruno
Posts: 767
Joined: 10 Sep 2005 02:10
Location: Lyon, France
Contact:

#3 Post by bruno » 10 Feb 2008 17:11

Hello Ivan, thanks, but my report was for PIC :mrgreen:
Bruno
Bored with 7-segment ? Try the [url=http://www.micro-examples.com/public/microex-navig/doc/079-touchclock.html]TouchClock[/url]

User avatar
rajkovic
mikroElektronika team
Posts: 694
Joined: 16 Aug 2004 12:40

#4 Post by rajkovic » 11 Feb 2008 09:52

bruno wrote:Hello Ivan, thanks, but my report was for PIC :mrgreen:
:oops:

Post Reply

Return to “mikroC Beta testing”