[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gcl-devel] Re: Bison/Yacc for Common Lisp? + Lisp case performance
From: |
Camm Maguire |
Subject: |
[Gcl-devel] Re: Bison/Yacc for Common Lisp? + Lisp case performance |
Date: |
26 Dec 2007 10:02:02 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
The following message is a courtesy copy of an article
that has been posted to comp.lang.lisp as well.
Greetings!
tim Josling <address@hidden> writes:
> address@hidden (Robert E. Brown) said, a long time ago (23 Feb 2004)
> ;; Process the action for this production (in C this is a switch statement)
> (case yyn
> (4
> )
> (5
> )
> (6
> (setf yyval (aref yyvs yyvs-index)))
> ... much more etc
>
> For a large grammar, this case macro will be very large. The only lisp
> that handles such a macro efficiently, that I have tested, is GCL. I
> have tested with (proclaim '(optimize (speed 3) (debug 0)) and (declare
> (fixnum yyn)) or similar to encourage fast code generation.
>
cvs head also implements typecase in fast C switch form when all the
subtypes are recognizeable number types, at present. Plan to extend
this to array types.
Take care,
--
Camm Maguire address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gcl-devel] Re: Bison/Yacc for Common Lisp? + Lisp case performance,
Camm Maguire <=