llvm-mos / llvm-mos-sdk

SDK for developing with the llvm-mos compiler
https://www.llvm-mos.org
Other
281 stars 56 forks source link

Rewrite printf using PDCLib. #310

Closed mysterymath closed 9 months ago

mysterymath commented 9 months ago

This removes the MIT-licensed mpaland embedded print in favor of a new one based on PDCLib. This removes an annoying license gaff from the SDK, and it changes the following:

Note that the floating point printing routines target correctness first (since essentially mandated by the standard), then size, then speed. We could probably speed them up in common cases without adding too much more size. It's difficult to go smaller than the current implementation.