Jump to content
Sign in to follow this  
ElectronDes

Array Size Limit

Recommended Posts

When using boostc_pic18 (v6.97) inside MPLAB IDE (v8.53.00.00) and trying to declare an array of more than 256 elements, the message "error: total number of array elements can not exceed 0x100 (use -idx 2 compiler command line argument to remove this restriction)" is displayed.

 

Trying again with -idx 2 set as an option thus:

boostc_pic18.exe Filename.c -O1 -W1 -t 18F8722 -idx 2

gives:

 

warning: unrecognized command line agrument '-idx', skipped

 

FileName.c

C:\Pathname\Filename.c(138): error: total number of array elements can not exceed 0x100 (use -idx 2 compiler command line argument to remove this restriction)

2

FATAL: Unable to open input file: C:\Pathname\2

Error: preprocessing error

 

similarly, trying -idx2 thus:

boostc_pic18.exe Filename.c -O1 -W1 -t 18F8722 -idx2

gives a similar result:

warning: unrecognized command line agrument '-idx2', skipped[\b]

 

Trying again with -IDX 2 set as an option thus:

boostc_pic18.exe Filename.c -O1 -W1 -t 18F8722 -IDX 2

gives (note NO warning about skipped command line agrument):

 

FileName.c

C:\Pathname\Filename.c(138): error: total number of array elements can not exceed 0x100 (use -idx 2 compiler command line argument to remove this restriction)

2

FATAL: Unable to open input file: C:\Pathname\2

Error: preprocessing error

 

and again trying -IDX2 thus:

boostc_pic18.exe Filename.c -O1 -W1 -t 18F8722 -IDX2

gives a similar result.

 

Can someone tell me how to get around tis problem please?

Share this post


Link to post
Share on other sites
Can someone tell me how to get around tis problem please?
Wait for BoostC V7, this has support for large arrays. A release candidate should be coming soon.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...