develooper Front page | perl.perl6.internals | Postings from October 2001

[COMMIT] Moby patch

Gregor N. Purdy
October 13, 2001 17:46
[COMMIT] Moby patch
Message ID:
All --

I just committed (the now functioning; thanks to Tom Hughs for spotting
my missing #include sin) moby.patch.

It works great here, but its a big change. Feedback appreciated.

  * basic_opcodes.ops and opcode_table replaced by core.ops

  * replaced by Parrot/, Parrot/,
    and These convert *.ops to *_ops.c and

  * New converts *.ops to Parrot/OpLib/*.pm

  * modified to use 

  * interpreter.c modified to use structures in core_ops.c instead
    of the old op_info and op_func stuff. We're not yet to the
    point of handling multiple oplibs at a time, but we are getting

    Fingerprinting stuff disabled for now. We used to go off
    opcode_table. We need to rethink this. I have some ideas to
    make it unnecessary, but it remains to be seen whether others
    will like the direction they take us.

    Termination condition for while(){} loop in runops is now
    (pc) instead of (*pc). Any op can cause a HALT by returning
    a NULL pointer. Ops end, bounds and trace all do this. So, now
    the 'end' op body is actually executed, although all it does
    is HALT.

  * modified to perform a test build using,
    which is the bytecode --> C compiler I've posted to the
    list before.

  * Op full names are now autogenerated. Op root names must not
    contain underscores, so some op renamings have happened.
    Such as clear_i becoming cleari.


-- Gregor
/     perl -e 'srand(-2091643526); print chr rand 90 for (0..4)'      \

   Gregor N. Purdy                
   Focus Research, Inc.      
   8080 Beckett Center Drive #203                   513-860-3570 vox
   West Chester, OH 45069                           513-860-3579 fax
\_____________________________________________________________________/ Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About