[fpc-pascal] Getting fast output
Marco van de Voort
marcov at stack.nl
Tue Jul 22 11:46:16 CEST 2008
> 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 file has been closed.
True of course. I tried to paint a general case.
If your filehandling is within one procedure it can be on the stack. If that
filehandling is within a class, the buffer can be a member of a class etc.
But in neither of these cases it is in the binary.
More information about the fpc-pascal
mailing list