Author: Dave Gomboc
Date: 00:05:59 09/18/01
Go up one level in this thread
On September 16, 2001 at 17:38:20, Dieter Buerssner wrote: >On September 16, 2001 at 17:10:21, Bo Persson wrote: > >>But the C *language* does not have an 'inline' directive. That is C++! >>I know some compilers have it as an extension (especially if they also complie >>C++), but now we are talking implementation and not language. > >I agree with almost everything you said. I just want to note, that ISO C99 has >inline. I assume, soon all major C compilers will support inline, if they don't >do already. > >>There is *nothing* in C++ that forces you to write slower code. > >I agree here, too. > >>There are >>features of C++ that *enables* you to write faster code. You choose! > >A seriously meant question: Do you see any other features of C++ besides the >inline, that allows you to write faster code compared to C? Perhaps you can >answer in the context of chess engine (I can see, that one may be able to write >code faster). > >Regards, >Dieter Compile-time optimization using expression templates. Look for that on the web, or find a copy of Generative Programming by Czarnecki and Eisenecker. Dave
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.