Lightweight (subset) of standard C library (ANSI C library)
Posted: Mon Nov 14, 2016 3:10 am
Good day!
I'm porting standard C library for bare metal "OS" (ARM Cortex-M4, ARM GCC [1]). I want to have functions like strlen, sprintf, (and memory allocator, maybe), etc.
I've ported PDCLib [2] and Newlib [3].
But both are not lightweight (and try to implement files operations, etc.).
PDCLib 1) need lgcc, 2) have some ARM issues (so, ARM is not maintained), 3) is not in active development.
So, I want Microlib [4] exactly. But it's not for GCC and closed source.
Are there some alternatives for this? And are there some "bare metal subsets" of standard C Library? Thanks.
---
[1]: https://developer.arm.com/open-source/g ... ain/gnu-rm
[2]: http://pdclib.e43.eu/
[3]: https://sourceware.org/newlib/
[4]: http://www.keil.com/support/man/docs/ar ... 938431.htm
I'm porting standard C library for bare metal "OS" (ARM Cortex-M4, ARM GCC [1]). I want to have functions like strlen, sprintf, (and memory allocator, maybe), etc.
I've ported PDCLib [2] and Newlib [3].
But both are not lightweight (and try to implement files operations, etc.).
PDCLib 1) need lgcc, 2) have some ARM issues (so, ARM is not maintained), 3) is not in active development.
So, I want Microlib [4] exactly. But it's not for GCC and closed source.
Are there some alternatives for this? And are there some "bare metal subsets" of standard C Library? Thanks.
---
[1]: https://developer.arm.com/open-source/g ... ain/gnu-rm
[2]: http://pdclib.e43.eu/
[3]: https://sourceware.org/newlib/
[4]: http://www.keil.com/support/man/docs/ar ... 938431.htm