The following message is a courtesy copy of an article that has been posted to comp.lang.lisp as well.
Greetings! tim Josling <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (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 [EMAIL PROTECTED] ========================================================================== "The earth is but one country, and mankind its citizens." -- Baha'u'llah _______________________________________________ Gcl-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gcl-devel
