[cfe-dev] [LLVMdev] Reducing the size of LLVM and clang

Chris Lattner clattner at apple.com
Fri Jun 11 12:30:23 PDT 2010


On Jun 10, 2010, at 7:23 AM, Daniel Dunbar wrote:

> Hi Rob,
> 
> There is no way to compile Clang to support only one language right
> now, and it would probably provide only a marginal size win. Your best
> place to focus attention is on pieces of the LLVM backend that you
> don't need. For example, I added support for reading LLVM files
> directly which added in the asmparser library, but you can get
> eliminate that (with some code editing, we don't currently have any
> support for conditionalizing these things).

The best way to shrink the clang bits themselves are to subset out things like the static analyzer, the rewriter and other non-compiler things that are linked into the binary.

-Chris





More information about the cfe-dev mailing list