This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Converting to ISO C89


<tm_gccmail at mail dot kloo dot net> writes:

> On Tue, 25 Mar 2003, Raja R Harinath wrote:
[snip stage2 bootstrap with C++ compiler]
>> I was thinking more about optimization: ensure that there's no
>> abstraction penalty for using a C++ compiler on C code, and that both
>> the C and C++ compilers exploit the same optimization opportunities.
>> 
>> - Hari
>
> IIRC, C code compiled as C++ needs to carry around stack unwinding
> information whereas C code compiled as C does not.
>
> Therefore, the abstraction penalty cannot be zero in terms of code size.

Since we know it is C code, we can compile with -fno-exceptions.  The
size of the CFG should not be significantly larger since there should
be no additional flows of control (hidden or otherwise).

- Hari
-- 
Raja R Harinath ------------------------------ harinath at cs dot umn dot edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]