[fpc-devel] fpc dry run: syntax check mode?
Thomas Schatzl
tom_at_work at gmx.at
Tue Jun 26 12:13:37 CEST 2012
Hi,
On Tue, 2012-06-26 at 12:23 +0300, Gennadiy Poryev wrote:
> Hello,
>
> In my web project I need to validate input (uploaded) file against
> Pascal syntax. Since it should be done using server-side scripting
> with restricted environment and lowered privileges, I’d like fpc to
> not create any files whatsoever; preferably to not use file write
> operations at all, relying solely on process exit code. Quick scroll
> of fpc -h did not reveal any relevant modes. Can (and how) this be
> done?
>
I am not aware of anything that fits completely, but maybe using fpc -sr
-FE<some-temp-dir> helps.
The -sr skips the linking and assembling stage (and even register
allocation, for performance), and you can then just delete any output in
some-temp-dir.
Thomas
More information about the fpc-devel
mailing list