Re: Draft switch for DO_OP() :-)

2001-09-22 Thread Damien Neil
On Thu, Sep 20, 2001 at 11:11:42AM -0400, Dan Sugalski wrote: Actually the ops=C conversion was conceived to do exactly what's being done now--to abstract out the body of the opcodes so that they could be turned into a switch, or turned into generated machine code, or TIL'd. If you're

Re: Draft switch for DO_OP() :-)

2001-09-22 Thread Michael Maraist
On Thu, Sep 20, 2001 at 11:11:42AM -0400, Dan Sugalski wrote: Actually the ops=C conversion was conceived to do exactly what's being done now--to abstract out the body of the opcodes so that they could be turned into a switch, or turned into generated machine code, or TIL'd. If you're

Re: Draft switch for DO_OP() :-)

2001-09-20 Thread Dan Sugalski
At 12:07 AM 9/20/2001 -0700, Damien Neil wrote: I'm not at all certain what to do with things outside the opcodes themselves. The .ops = .c conversion was clearly originally concieved as translating one file into another. In order to dispatch ops via a switch, you need to pull out only the

Re: Draft switch for DO_OP() :-)

2001-09-20 Thread Damien Neil
On Thu, Sep 20, 2001 at 11:11:42AM -0400, Dan Sugalski wrote: Actually the ops=C conversion was conceived to do exactly what's being done now--to abstract out the body of the opcodes so that they could be turned into a switch, or turned into generated machine code, or TIL'd. If you're

Re: Draft switch for DO_OP() :-)

2001-09-20 Thread Dan Sugalski
At 01:08 PM 9/20/2001 -0700, Damien Neil wrote: Another approach would be to include a means of defining information that must be included by the file implementing the ops. For example: HEADER { #include math.h } This would then be placed into interp_guts.h. (Possibly surrounded by a

Draft switch for DO_OP() :-)

2001-09-19 Thread Michael Fischer
please see attached process_switch.pl notes inside. Very rough draft, but I think it does write a correct define ( but I might be clueless ). On the note of the enum for the case foo: Made it work, Gibbs has seen patch, but we wanted to defer to Dan/Simon because op.h has the knack of