Jump to content
Sign in to follow this  
rlang

Usb Midi Interface Using Pic18f2455

Recommended Posts

I have finished debugging my USB to MIDI interface for the PIC18F2455 chip with BOOSTC. I decided to recompile using the C18 compiler from Microchip. Converting the source to C18 reqired a lot of changes. I had the following results:

 

PROGRAM SPACE USED (OUT OF 24K)

BOOSTC 9445

 

C18 7616

Share this post


Link to post
Share on other sites

What kind of changes did you make to the code? The used code space difference looks too big. In our tests BoostC generates quite compact code in many cases even shorter than Hi-Tech Picc compiler does. Is optimization turned on in your BoostC project? Are there any particular places whre BoostC generates unoptimized code? The only places I can think of may be delay functions (if you use many different types of them) or lookup tables (if you do use 'rom' in BoostC code and don't do it with C18). Can you send your project to support@picant.com so we can check it.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites

The types of changes that I had to make included were:

1. How fixed memory is allocated.

2. How binary constants are defined.

3. How bit variables are defined.

 

I did not know there were any options to turn on/off optimization in BOOSTC. Could you tell me what they are?

 

I noticed that you did not have any USB examples in BOOSTC examples. Feel free to use the source I sent you on 2/13 (usbtestcc.c) as a working example.

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...