What is the difference between the two ways of compiling using Pascal?

时间:2015-11-12 10:42:43

标签: pascal freepascal

I compiled using the following two commands:

  • Fpc -Se test.pas
  • Fpc test.pas -Se

What is the difference between these two ways to compile?

When do I put switches in? Before or after the source code?

1 个答案:

答案 0 :(得分:1)

免费pascal不检查标志的顺序。我试过其他一些标志,我发现编译没有区别。但是,查看文档时,您会注意到任何标志都放在要编译的文件之前。

以下是文档中的示例:ftp://ftp.freepascal.org/pub/fpc/docs-pdf/user.pdf

  

fpc -Fuc:\ pp \ NNN \ units \ i386-go32v2 \ rtl hello

     

fpc -g hello.pp

     

fpc -n -Fu / home @cfg -Fu / usr foo.pp