Compiling libc for bare metal target

Hey.

I’m developing an LLVM backend.
Right now I’m in the state where I can comfortably compile C and CPP code for my target, far from perfect, but mostly works.

I want to be able to use libc, and it seems logical to me to use the clang implementation.

The problem is, my target has no OS, Filesystem or support for floating points.

Is it even possible to compile libc for that kind of target?

I’ve looked into embedded libc implementation, but I rather stick with clang where possible.

tagging @petrhosek who could give you exactly what are needed to build LLVM libc for baremetal targets.