This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling subset of newlib


Joel, thanks for reply!

Yes you're right but I think it's a good idea to avoid usage of functions which are stubs only instead.

Do you mean options like --disable-newlib-supplied-syscalls or more complex?


-- 
Alexander Kurakin



>Суббота, 12 ноября 2016, 20:05 +03:00 от Joel Sherrill <joel.sherrill@oarcorp.com>:
>
>On 11/12/2016 8:15 AM, Alexander Kurakin wrote:
>> Good day!
>>
>> I want to compile a subset of Newlib. For own toy OS (ttarget is ST32F4xx based on ARM). It provides _exit, environ, sbrk and times. So I want to have functions like strle, printf, etc.
>>
>> How do I do this? Thanks.
>>
>>
>
>Why do you need to do this? Only the methods you link in
>and their dependencies will end up in your statically
>linked executable.
>
>You probably want to turn on the options for smaller
>targets from the configure list. See the configure --help
>output for ideas.
>
>--joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]