Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Can I reduce the size of code.

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Can I reduce the size of code.
Moderator:
RSKV

Post Reply
Follow this topic



Can I reduce the size of code.

Poul-Erik posted on 12 Jun 2012 9:11 PM PST
Senior Member
14 Forum Posts

I have problems getting rume for my code. The total size of my own program is approx 18K, and it can't incress the size without getting into space trouble.

My current fx3.ld : 

   Descriptor area Base: 0x40000000 Size: 12KB
   Code area       Base: 0x40003000 Size: 180KB
   Data area       Base: 0x40030000 Size: 32KB
   LIBC heap       Base: 0x40038000 Size: 32KB
   Driver heap     Base: 0x40040000 Size: 32KB  (Update cyfxtx.c to change this.)
   Buffer area     Base: 0x40048000 Size: 224KB (Update cyfxtx.c to change this.)
 

In the map file I can see that some unused modules are linked into my project:

ex.;  (cyu3i2s.o), (cyu3usbhost.o), (cyu3usbotg.o) ...

Can I make dummy for this modules?

Can I reduce the size of my LIBC heap?

Poul-Erik.

 




Re: Can I reduce the size of code.

aasi posted on 12 Jun 2012 09:58 PM PST
Cypress Employee
1073 Forum Posts

The library source isn't open yet. So tech support (MyAccount -> MyCases) would be the right place to get answers for this query. They would be able to look at the modules and see what exactly is getting added.

Regards,

Anand



Re: Can I reduce the size of code.

RSKV posted on 18 Jun 2012 10:28 PM PST
Cypress Employee
655 Forum Posts

we do not recommend you to do that. There might be some linking problems.

Thanks,

sai krishna.



Re: Can I reduce the size of code.

sodafarl posted on 18 Jun 2012 05:40 AM PST
Top Contributor
128 Forum Posts

Is your build configuration set for Debug or Release. Release reduces the compiled code size.

Sodafarl






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.