[cfe-dev] On the preferred use of C++ in the clang source code

James Widman widman at gimpel.com
Fri Nov 9 13:59:00 PST 2007


On Nov 9, 2007, at 4:50 PM, Chris Lattner wrote:

>>> The main problem with RTTI and EH is the impact on binary size.   
>>> Many clients of LLVM and at least one client of clang use them in  
>>> a JIT context.  Having the binaries be as small as possible makes  
>>> it easier for people to distribute them with their apps.
>>
>> I think that may be the least-flaky objection to EH that I've  
>> heard so far.  (:
>
> :)
>
> It is actually really frustrating, because certain pieces of the  
> compiler (e.g. error recovery in the parser) could be slightly  
> cleaner with exceptions.

<nod>

I know the feeling; I've wanted to use exceptions for exactly that  
purpose in a certain other C/C++ parser.

James Widman
-- 
Gimpel Software
http://gimpel.com





More information about the cfe-dev mailing list