Browse Source

+ command line to compile test programs

mazen 23 years ago
parent
commit
e0451e6641
1 changed files with 8 additions and 1 deletions
  1. 8 1
      compiler/mppcsparc

+ 8 - 1
compiler/mppcsparc

@@ -1,2 +1,9 @@
 #!/bin/bash
 #!/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