[fpc-devel] dominant short strings in compiler source

Daniël Mantione daniel.mantione at freepascal.org
Wed May 17 23:01:52 CEST 2006



Op Wed, 17 May 2006, schreef peter green:

> 
> > Well, dos.exec of course requires the entire command line as a
> > shortstring. This is no problem for Dos because Dos has a maximum
> > path length of 128
> > chars.
> so with 2 max length paths plus some options in the command line your
> screwed with shortstrings?

Under Dos: Yes, the operating system didn't allow more. But remeber, 
filenames were in 8:3 format, so 128 bytes was enough for a directory tree 
of 10 levels deep. Even today, few people use directory trees that deep.

Considering the 640k limit, the 128 bytes reserved in the PSP for the 
command line wasn't a that stupid tradeoff.

Daniël


More information about the fpc-devel mailing list