CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

compiler question

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
guestirt
Guest







compiler question
PostPosted: Thu Aug 09, 2007 9:15 am     Reply with quote

Is there an arbitrary do not exceed number for data objects?
specifically a structure called test of size say 20 bytes declared as such


const struct test[size];

is there a limit to size ? other than the obvious memory constraints.
are there page boundary issues?
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Thu Aug 09, 2007 10:47 am     Reply with quote

Any function or data object must fit in one memory page. The size of a page depends on the PIC you choose.
_________________
The search for better is endless. Instead simply find very good and get the job done.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Thu Aug 09, 2007 11:51 am     Reply with quote

SherpaDoug wrote:
Any function or data object must fit in one memory page. The size of a page depends on the PIC you choose.
This is true for PIC16 and smaller processors, also note that for these chips not all pages are the same size.

PIC18 chips are much more relaxed in this respect and as far as I know the only limit is the amount of free RAM. My largest array is 512 bytes and this works great. The first PIC18 compiler versions had a size limit of 256 bytes and this was in the manuals for a long time even after it was fixed (before I started using this compiler, i.e. before v3.187).
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group