浏览代码

+ command line to compile test programs

mazen 22 年之前
父节点
当前提交
e0451e6641
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      compiler/mppcsparc

+ 8 - 1
compiler/mppcsparc

@@ -1,2 +1,9 @@
 #!/bin/bash
-fpc pp -gl -oppcsparc -dExtDebug -Fusparc -Fusystems -dSPARC -dNoOpt -dGDB
+if [[ "$1" != "" ]]
+then
+  FPCSRC="$HOME/FPC/Demo/src/fpc"
+  cd $FPCSRC/tests/sparc
+  $FPCSRC/compiler/ppcsparc -s -al -Fi$FPCSRC/rtl/{unix,linux,sparc,inc} -dSPARC "$@"
+else
+  fpc pp -gl -oppcsparc -dExtDebug -Fusparc -Fusystems -dSPARC -dNoOpt -dGDB
+fi