At 01:00 PM 3/23/2002 -0500, Clinton A. Pierce wrote:
>For your weekend entertainment, here's a bit of parrot assembler for the 
>adventurous to play with.  To get the code, just head to: 
>http://geeksalad.org/basic and download the latest tar bundle you 
>find.  The README.basic file included in the tar bundle is listed after this.
>
>[Small amount of begging: someone please, please, please fix the I/O in 
>Parrot!  :)]

Ok, will have a look, its been sort of on the back burner waiting on a few 
other
things to be implemented.

Can you try the PIO routines instead?
I see in your code you tried...

         # Commented out until I figure out why I/O
         #     is farked up.
         #readline S0, 0
         #length I1, S0
         #eq I1, 1, MAINLOOP
         #chopn S0, 1

Try using read where you use readline, or you can open
files with the stuff in io.ops if you track the PMC registers.
Check in examples/io1.pasm and io2.pasm

If you then provide me some breakage info I'll put some more
work into it to at least get it stable in the near term before
we likely reroll it for async.

I've done tests on my unix box of reading very large files and had
no problems with the following:

NEXTLINE:
         read S0, 256
         print S0
         branch NEXTLINE
         end


Tried ./parrot cat.pbc < MANIFEST

No crashes on Linux.

-Melvin

Reply via email to