|
|
|
|
|
by klodolph
1535 days ago
|
|
I don’t think there’s any reason to be worried about a “bloated” library if you understand the components of that library. I’ve used Newlib in embedded projects without malloc and it’s fine. It’s easier and faster to check what parts of Newlib you are pulling in than to try and reimplement it on your own. It’s a trap that people fall into to think that it’s easy to roll your own. It depends on what, exactly, you are rolling, what resources you have, etc. Maybe I need a couple math functions, a decent implementation of memset/memcpy/etc, and having the C library at my disposal gives me those things. The idea that you throw out Newlib just because one function pulled in malloc seems unjustifiable to me. On the other hand, I think it’s quite normal to want your own PRNG. |
|