Unnecessary stuff from library linked in

Working libraries, libraries being ported and related hardware
michael_l
Posts: 371
Joined: Mon Aug 24, 2015 6:11 pm

Re: Unnecessary stuff from library linked in

Post by michael_l » Mon Feb 05, 2018 4:51 pm

stevestrong wrote:
Sun Feb 04, 2018 5:35 pm
You may try to edit the platform.txt by adding the "-specs" compiler directives:

Code: Select all

compiler.c.elf.extra_flags="-L{build.variant.path}/ld" -specs=nosys.specs -specs=nano.specs 
I use it in my repo, it reduces considerably the code size with no side issues so far.
At least the %f format of printf will not work anymore. But there is a option to include %f, but can't remember that from the top of my head.

User avatar
Rick Kimball
Posts: 1079
Joined: Tue Apr 28, 2015 1:26 am
Location: Eastern NC, US
Contact:

Re: Unnecessary stuff from library linked in

Post by Rick Kimball » Mon Feb 05, 2018 9:47 pm

michael_l wrote:
Mon Feb 05, 2018 4:51 pm
At least the %f format of printf will not work anymore. But there is a option to include %f, but can't remember that from the top of my head.
viewtopic.php?f=3&t=1241&start=20#p38392
-rick

Post Reply