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

Add picolibc compatibilty #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

rben-dev
Copy link

@rben-dev rben-dev commented Jun 26, 2024

This PR adds picolibc C standard library (https://github.com/picolibc/picolibc) compatibility. This is useful e.g. under Debian and some other distros where the RISC-V toolchain comes with a packaged picolibc but no packaged newlib for this target.

Under Debian trixie or Ubuntu jammy:

$ sudo apt install gcc-riscv64-unknown-elf picolibc-riscv64-unknown-elf

The PR should not break the regular original compilation with newlib as it is only activated when the environment variable USE_PICOLIBC=1 is exported.

The profiling script flow/eprof.py has been adapted to handle cases where source references from the debug symbols are not present in the toolchain (in this case the script skips these files).

…chain)

compatibility in the compilation toolchain.
The commit also adds "printf" possible usage using picolibc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant