Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 1 > Linker wastes memory

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



Linker wastes memory
Moderator:
ARVI

Post Reply
Follow this topic



Linker wastes memory

koerber posted on 19 Apr 2013 5:48 AM PST

1 Forum Post

 I am working on a project with a CY8C24123 in assembly using PSoC Designer 5.3.

The code size is going to the limits of the memory of the CY8C24123, so I am quite concerned with memory use.

Today I found that the linker is wasting quite a lot of my precious memory. It leaves a gap between the code coming from boot.asm and the initialisation code for the blocks. There is nothing between the boot.asm code and $0150, wasting about 200 bytes.

I found that this memory gap is caused by a system variable called "RELSTART" that can be found in the "opts.txt" and make files. Though I have not found how I can do anything about this. Every time I change the value it gets overwritten on the next assembly run.

 

BTW: It would be nice if selecting "Assembly" as the programming method all C support code gets automatically thrown out of the system generated source code.




Re: Linker wastes memory

danaaknight posted on 19 Apr 2013 07:15 AM PST
Top Contributor
1773 Forum Posts

This might help -

 

www.cypress.com/

 

Regards, Dana.



Re: Linker wastes memory

Bob Marlowe posted on 19 Apr 2013 07:25 AM PST
Top Contributor
1768 Forum Posts

In Designer under Project -> Settings -> Linker you can find an option where the relocatable code starts. You may adjust this for your needs.

 

Bob



Re: Linker wastes memory

Bob Marlowe posted on 19 Apr 2013 07:34 AM PST
Top Contributor
1768 Forum Posts

... and regarding C - specific code: afaik all of that is #ifed so that no code is generated when you select "Assembly" as your programming language.

 

Bob






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.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20