Re: [PATCH] print_s_v op (was: RE: variable number of arguments)

2001-09-26 Thread Michael L Maraist
"Gregor N. Purdy" wrote: > Michael -- > > > I had more time to think about it, and I determined how a compute op-code > > could be efficient. > > > > [snip] > > You wicked, wicked person! :) > > I'd like to see some benchmarks on that one vs. the most efficient > possible hand-coded separate ops

Re: [PATCH] print_s_v op (was: RE: variable number of arguments)

2001-09-25 Thread Gregor N. Purdy
Michael -- > I had more time to think about it, and I determined how a compute op-code > could be efficient. > > [snip] You wicked, wicked person! :) I'd like to see some benchmarks on that one vs. the most efficient possible hand-coded separate ops for moderate to complex arithmetic... These s

Re: [PATCH] print_s_v op (was: RE: variable number of arguments)

2001-09-25 Thread Dan Sugalski
At 06:59 PM 9/25/2001 -0400, Michael L Maraist wrote: > > > > I've created a varargs-ish example by making a new op, print_s_v. > > > > This is pretty rough, and I haven't updated the assembler, but it > > > > seems to work. Okay, I've been off the air all day (Sorry 'bout that--cable got nuked)

Re: [PATCH] print_s_v op (was: RE: variable number of arguments)

2001-09-25 Thread Michael L Maraist
Michael Maraist wrote: > > All -- > > > > > I've created a varargs-ish example by making a new op, print_s_v. > > > This is pretty rough, and I haven't updated the assembler, but it > > > seems to work. > > > With var-args, we could produce highly efficient SIMD instructions. > printf obviously,

Re: [PATCH] print_s_v op (was: RE: variable number of arguments)

2001-09-25 Thread Michael Maraist
> All -- > > > I've created a varargs-ish example by making a new op, print_s_v. > > This is pretty rough, and I haven't updated the assembler, but it > > seems to work. > > Um.. I *have* updated the assembler. Its the *dis*assembler I haven't > updated. This is what happens: > > * *_v ops list

Re: [PATCH] print_s_v op (was: RE: variable number of arguments)

2001-09-25 Thread Gregor N. Purdy
All -- > I've created a varargs-ish example by making a new op, print_s_v. > This is pretty rough, and I haven't updated the assembler, but it > seems to work. Um.. I *have* updated the assembler. Its the *dis*assembler I haven't updated. This is what happens: * *_v ops list their number of a

[PATCH] print_s_v op (was: RE: variable number of arguments)

2001-09-24 Thread Gregor N. Purdy
All -- I've created a varargs-ish example by making a new op, print_s_v. This is pretty rough, and I haven't updated the assembler, but it seems to work. I'm attaching a patch, and a test program (pt.pasm). Enjoy! -- Gregor ___

RE: variable number of arguments

2001-09-24 Thread Michael Maraist
> > > >I have a minor issue with a proliferation of createArray. In perl5 we > >used the Stack for just about everything minus physically setting @x = > >(1,2,3). The creation of a dynamic array is a memory hog. > > Less of a hog in many ways than using a stack. Worth the times when it's not. I

RE: variable number of arguments

2001-09-24 Thread Dan Sugalski
At 01:03 PM 9/24/2001 -0400, Michael Maraist wrote: > > > is it possible the ops to handle variable number of arguments, what I > have > > > in mind : > > > > > > print I1,",",N2,"\n" > > > > This should be done by create ar

RE: variable number of arguments

2001-09-24 Thread Michael Maraist
> > is it possible the ops to handle variable number of arguments, what I have > > in mind : > > > > print I1,",",N2,"\n" > > This should be done by create array opcode plus print array opcode. > > [1, 2, 3, 4, 5] I have a minor issue wi

RE: variable number of arguments

2001-09-24 Thread Hong Zhang
> is it possible the ops to handle variable number of arguments, what I have > in mind : > > print I1,",",N2,"\n" This should be done by create array opcode plus print array opcode. [1, 2, 3, 4, 5] The create array opcode takes "n" top of stack (or &q

Re: variable number of arguments

2001-09-22 Thread Gregor N. Purdy
On Sat, 22 Sep 2001, raptor wrote: > hi, > > is it possible the ops to handle variable number of arguments, what I have > in mind : > > print I1,",",N2,"\n" This could probably be done as a macro when the assembler has macro support in the future

Re: variable number of arguments

2001-09-22 Thread Dan Sugalski
At 07:09 PM 9/22/2001 +0300, raptor wrote: >hi, > >is it possible the ops to handle variable number of arguments No. Which isn't to say that if you do: new P0, list push P0, "A " push P0, "multipart " push P0, "string" push P0, "\

variable number of arguments

2001-09-22 Thread raptor
hi, is it possible the ops to handle variable number of arguments, what I have in mind : print I1,",",N2,"\n" cheers = iVAN [EMAIL PROTECTED] =