[cfe-dev] Stripped-down Clang/LLVM

Dmitri Gribenko gribozavr at gmail.com
Sun Mar 3 13:49:46 PST 2013


On Sun, Mar 3, 2013 at 11:31 PM, Daniel Kudrow <dkudrow at gmail.com> wrote:
> Hi all,
> I'm modifying Clang and LLVM to build a compiler for a c-like
> language. I would like to remove as much of the codebase that I am not
> using as I can to bring down size and debugging time. I can do without
> all of the Objective C and C++ specific elements of Clang and much of
> the target specific code in both Clang and LLVM. Before I spend an
> entire day hacking away at the Makefiles, has anyone done this
> already? Are there modules that I shouldn't waste my time trying to
> extricate from source tree?

Unfortunately, all of them.  C, C++ and Objective-C frontends are
implemented in Clang as a single frontend that is controlled by
"language options" configuration struct.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the cfe-dev mailing list