Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® Software > Info on arm-none-eabi-gcc embedded library differences to standard c libs.

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



Info on arm-none-eabi-gcc embedded library differences to standard c libs.
Moderator:
JFMD

Post Reply
Follow this topic



Info on arm-none-eabi-gcc embedded library differences to standard c libs.

dwhobrey posted on 03 Oct 2011 2:03 AM PST
Member
4 Forum Posts

Hi,

where would I find information on the differences between the functionality provided in the embedded C libraries and what is provided in non-embedded environments, such as standard gcc c runtime on a pc?

For example, I see that the stdio sscanf function simply returns "0.000" when scanning floats.

Following that, are there linker options for specifying the extent of library support required, or which library to use - such as a stdio version that supports reals?

Thank you,

Darren.

 

 




Re: Info on arm-none-eabi-gcc embedded library differences to standard c libs.

LookAtSystemSolutions posted on 07 Oct 2011 10:53 AM PST
Top Contributor
31 Forum Posts

Darren,

If you refer to embedded libs, are you referring to Newlib?

There is a nice white paper on specific implementations of Newlib. In the introduction of that paper the size difference between "Hello World" with stdlib and newlib is listed.

As an example,  floating point needs lots of memory. If printf () can be used without floating point such as iprintf (), you will save many KB in your file.

More examples are listed in the white paper.

hth







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: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20