Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide support for newlib nano #84

Closed
vsydoruk opened this issue Dec 29, 2021 · 6 comments
Closed

Provide support for newlib nano #84

vsydoruk opened this issue Dec 29, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@vsydoruk
Copy link

Hello,

First of all , it is great to see LLVM based embedded toolchain is coming for ARM Cortex M family. Thank you guys for the effort.

Now to the issue, contrary to the ARM GNU Embedded toolchain there is no "nano" flavored C library in the output directory and the released binary. There is, however, the nano.specs file present which is a bit odd. Is there a plan to compile newlib with "nano" configuration?

Thank you,
Volod

@voltur01
Copy link
Contributor

voltur01 commented Jan 4, 2022

Hi Volod,

Thanks for checking out the toolchain!

The nano.specs file, as well as other spec files in the lib directory, is standard output from newlib build that we did not remove specifically even though the toolchain is not using it - the configuration is provided in the *.cfg files found in the bin directory.

We do expect to add more library options in the future including a minimal version like nano for really small MCUs, however there is no particular due date for that yet.

I hope this answers the question.

@vsydoruk
Copy link
Author

vsydoruk commented Jan 4, 2022

Thank you for the answer.
I'd like to experiment with the build system and get the libc_nano equivalent to the ARM GCC toolchain compiled for testing.
Do you know what are the newlib configuration options used for nano build for ARM GNU Embedded toolchain?

@voltur01
Copy link
Contributor

voltur01 commented Jan 4, 2022

This project https://github.com/ARM-software/toolchain-gnu-bare-metal may be helpful, see build-toolchain.sh

@voltur01 voltur01 changed the title Missing libc_nano Provide support for newlib nano Jan 12, 2022
@miyuki miyuki added the enhancement New feature or request label Jan 28, 2022
@GorgonMeducer
Copy link

It looks like the latest LLVM 14 release still doesn't provide the nano c library.

@voltur01
Copy link
Contributor

voltur01 commented May 3, 2022

Hi Gabriel,

Yes, we want to sort out the multilib support #110 before adding more library options, so for now only regular newlib is included.

@voltur01
Copy link
Contributor

voltur01 commented Aug 2, 2022

The library was switched to picolibc as per #61, so I shall close this issue, at least for now.

Here is the comparison of picolibc vs newlib-nano picolibc/picolibc#103

@voltur01 voltur01 closed this as completed Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants