Re: [fpc-pascal] Getting fast output

2008-07-23 Thread leledumbo
Jonas Maebe-2 wrote: > > But that won't help you in this case, because settextbuf does not > change the flushing behaviour when writing to the screen. For that, > you have to follow Tomas' advice. > Done, but I still demand it to be in System unit. That way, no additional unit is needed. Do

Re: [fpc-pascal] Getting fast output

2008-07-22 Thread Jonas Maebe
On 22 Jul 2008, at 08:06, Jonas Maebe wrote: On 22 Jul 2008, at 06:29, leledumbo wrote: Peter Vreman wrote: http://www.freepascal.org/docs-html/rtl/system/settextbuf.html http://www.freepascal.org/docs-html/rtl/system/settextbuf.html Oh, yeah! I forgot to mention this. But declaring the bu

Re: [fpc-pascal] Getting fast output

2008-07-22 Thread Marco van de Voort
> Marco van de Voort schreef: > >> will add 64k to the executable because it's allocated on the stack. > > > > Huh? > > > > A filebuffer variable must be available always, so it is a global variable. > > I thought the file buffer variable must available for the time a file is > opened and > ca

Re: [fpc-pascal] Getting fast output

2008-07-22 Thread Vincent Snijders
Marco van de Voort schreef: will add 64k to the executable because it's allocated on the stack. Huh? A filebuffer variable must be available always, so it is a global variable. I thought the file buffer variable must available for the time a file is opened and can be discarded after the fil

Re: [fpc-pascal] Getting fast output

2008-07-22 Thread Marco van de Voort
> Peter Vreman wrote: > > > > http://www.freepascal.org/docs-html/rtl/system/settextbuf.html > > http://www.freepascal.org/docs-html/rtl/system/settextbuf.html > > > Oh, yeah! I forgot to mention this. But declaring the buffer will eat spaces > ,for instance: > ... > var > Buf: array [0..6553

Re: [fpc-pascal] Getting fast output

2008-07-22 Thread Jonas Maebe
On 22 Jul 2008, at 06:29, leledumbo wrote: Peter Vreman wrote: http://www.freepascal.org/docs-html/rtl/system/settextbuf.html http://www.freepascal.org/docs-html/rtl/system/settextbuf.html Oh, yeah! I forgot to mention this. But declaring the buffer will eat spaces ,for instance: ... var

Re: [fpc-pascal] Getting fast output

2008-07-21 Thread leledumbo
Peter Vreman wrote: > > http://www.freepascal.org/docs-html/rtl/system/settextbuf.html > http://www.freepascal.org/docs-html/rtl/system/settextbuf.html > Oh, yeah! I forgot to mention this. But declaring the buffer will eat spaces ,for instance: ... var Buf: array [0..65535] of Byte; ... wi

Re: [fpc-pascal] Getting fast output

2008-07-21 Thread Tomas Hajny
On Mon, July 21, 2008 07:17, leledumbo wrote: > > Is there any way so that Write(Ln) doesn't flush the buffer after each > call > (as if it's called to write to a file, I knew it from rtl's file handling > source), but only when Flush is called? I found some maniac's code that > does > it at assemb

Re: [fpc-pascal] Getting fast output

2008-07-20 Thread Peter Vreman
> > Is there any way so that Write(Ln) doesn't flush the buffer after each call > (as if it's called to write to a file, I knew it from rtl's file handling > source), but only when Flush is called? I found some maniac's code that does > it at assembler level, but of course it's platform dependant (

[fpc-pascal] Getting fast output

2008-07-20 Thread leledumbo
Is there any way so that Write(Ln) doesn't flush the buffer after each call (as if it's called to write to a file, I knew it from rtl's file handling source), but only when Flush is called? I found some maniac's code that does it at assembler level, but of course it's platform dependant (i386-linu