[PATCH] D144889: [C2x] Support <string.h> in freestanding

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 28 10:46:25 PST 2023


aaron.ballman added a comment.

In D144889#4158935 <https://reviews.llvm.org/D144889#4158935>, @jyknight wrote:

>> On the other hand, I think a not-insignificant number of users are interested in freestanding environments for one-off/fun/experimental projects where ease of access is more important than performance characteristics -- think: users who are playing around with an arduino, etc.
>
> I agree. But, I see no reason that building the micro-libc for a given target should be any more onerous than building the compiler-rt builtins for said target -- which you already need to do! And it doesn't actually help to make micro-libc _less_ onerous to build than compiler-rt builtins, since you also need that...

In my ideal world (which might not be practical!), the user doesn't build compiler-rt at all (they don't even need to know it's a thing) -- they use whatever means they usually do to get clang installed on their system and that's sufficient for them to work on their project. So, to me, asking the user to build a micro-libc or compiler-rt is somewhat onerous in and of itself.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144889/new/

https://reviews.llvm.org/D144889



More information about the cfe-commits mailing list