code size

Talk about the emIDE project. Experiences, reviews, tips and tricks

3 posts | Page 1 of 1


astronut

Posts: 6
Joined: 10 Feb 2015 17:00

code size
Postby astronut » 10 Feb 2015 17:21

Is there a way to use the nano libraries? I have a C++ program that requires less than 20 kB using the IAR compiler, but over 90 kB when compiled using emIDE. It looks like the bulk of the space is taken up by the libstd++_s library. Form some reading there seems to be nano versions of these libraries that address this, but I'm wondering how to get them installed.

Top


emIDE
Site Admin

Posts: 221
Joined: 03 Jul 2012 10:20

Re: code size
Postby emIDE » 10 Feb 2015 18:46

Hi,

The newlib nano is part of the ARG GCC toolchain.
It can be used in the projects by adding --specs=nano.specs to the linker options.

Regards
Johannes - emIDE

Top


astronut

Posts: 6
Joined: 10 Feb 2015 17:00

Re: code size
Postby astronut » 10 Feb 2015 22:04

Johannes:

Thanks for the reply. Forgive my dumb questions, but I'm new to GCC. Once I add your suggestion to the linker options, where do I find the library? I'm assuming that I replace the libstd++ library in the linker library list with the nano version?

Blair

Top



3 posts | Page 1 of 1


Jump to:


Who is online

Users browsing this forum: No registered users and 1 guest