Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[CVS ci] switched run core

9 views
Skip to first unread message

Leopold Toetsch

unread,
May 18, 2003, 6:01:19 AM5/18/03
to P6I
This patch adds a switched prederefed run core. It is slightly faster
then plain prederefed (no function call overhead) and ought to be the
default core, when CGoto and JIT are unavailable.

primes.pasm timings (-O3, Athlon 800, i386/linux)

slow core: 15.3
prederef: 12.8
switched: 10.6
CGoto: 9.9 (-O0)
CGP: 5.9
JIT: 3.9

Also a bug with all prederefed cores is fixed: PARROT_ARG_K was missing
from the prederef() init code.

leo

Bruce Gray

unread,
May 18, 2003, 10:41:32 AM5/18/03
to perl6-i...@perl.org, Leopold Toetsch
On Sun, 18 May 2003 12:01:19 +0200, Leopold Toetsch wrote:
>This patch adds a switched prederefed run core.
--snip--

Line 330 of ops2c.pl is producing an embedded newline in
line 4876 of core_ops_switch.c. The embedded newline causes the
build to fail on these tinderboxes:
frivolous (SUNWspro 7)
util-600

This patch resolves the problem.

See also:
http://gcc.gnu.org/gcc-3.3/changes.html
The preprocessor no longer accepts multi-line string literals.
http://developers.slashdot.org/comments.pl?sid=64284&cid=5963032
GCC 3.3 Released
Why was this (multi-line string literals) removed?

--
Hope this helps,
Bruce Gray

cswitch_newline.patch

Leopold Toetsch

unread,
May 18, 2003, 11:56:24 AM5/18/03
to Bruce Gray, perl6-i...@perl.org
In perl.perl6.internals, you wrote:
> line 4876 of core_ops_switch.c. The embedded newline causes the

Oops, thanks.

> + internal_exception(1, "illegal opcode\\n");

Applied,
leo

0 new messages