On Tue, 2007-07-10 at 10:31 +0200, Rhythmic Fistman wrote:
> > From: skaller <[EMAIL PROTECTED]>
> 
> > Felix __can__ be twice as fast as C .. :)
> 
> I've never been comfortable with this statement, because seeing
> as felix's output IS a C programme it's its own competitor hence
> felix can be __exactly__ as fast C. It would be fairer to say that felix's
> unorthodox machine generated output can be twice as fast as
> an off-the-cuff C implementation.

The comparison is between 'natural Felix' and 'natural C'.

However, Felix CAN be faster than C for an unrelated reason:
Felix generated code can adapt via smart macros to the
compiler, so it is ISO C++ if needed, but can use compiler
specific extensions too. For example, if you're using gcc,
then the macros will use gcc computed gotos instead
of switches, and if you're on a x86 with gcc it can
generate regparm(3) attribute to speed up function 
calls.

Felix even generates gcc hints to help branch prediction,
and there's provision for other stuff like 'pure' attributes.

'Natural' ISO C/C++ cannot do this.

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to