You miss typed yet again :) :

+prompt("Opcode dispatch by switch or function ('switch' or 'goto' or
'func')",
+        'do_op_t');
+
+if ($c{do_opt_t} eq 'goto' and $c{cc} !~ /gcc/i ) {
        ^^^^^^^^
        do_op_t

+        my $not_portable =  "
+'goto' opcode dispatch available only with gcc (for now).
+Please rerun and select either 'func' or 'switch'. Sorry\n";
+        die $not_portable;
+}
+

But here's one idea, if I'm not wrong the number of opcodes is going to
grow, so I think that the big switch dispatch method is going to be
useless, my suggestion is to discard it right now.

Another idea is to write another test_c2.in which test if we can compile
using computed goto and if can (and again if it's REALLY faster on every
os/plataform) use it as I propoused on my patch, that is using the func
dispatch method when -b, -p or -t and computed goto on normal situations,
because after my work arround that is the best way.

On Sun, 4 Nov 2001, Michael Fischer wrote:

> And now, with the patch
>
>
> Michael
> --
> Michael Fischer                         7.5 million years to run
> [EMAIL PROTECTED]                        printf "%d", 0x2a;
>                                                 -- deep thought
>

Daniel Grunblatt.


Reply via email to