Porting Clang to a new architecture

Joerg Sonnenberger via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 2 01:58:13 PST 2015


On Mon, Nov 02, 2015 at 06:30:07AM -0300, Ariel Arelovich via cfe-commits wrote:
> One question that I still can't answer is the whole standard libraries. Are
> these precompiled for a given backend? Do I need to write them for my
> proposed arquitecture?
> 
> Or by simply writing a  new backend everything else is done by the front
> end?

Depends on what you mean by standard library. compiler-rt provides
(most) of what LLVM may use in terms of library calls. This is primarily
used for some complex high level functions like complex division and for
things missing from the instruction set, e.g. if there is no 64bit
division operation, a function call will be generated by the backend.
LLVM does not provide a libc. That's a completely different topic.

Joerg


More information about the cfe-commits mailing list