fpc/compiler/mppcsparc
mazen 311508131a - some writeln(s) removed in compiler
+ many files added to RTL
* some errors fixed in RTL
2002-12-24 21:30:20 +00:00

23 lines
680 B
Bash

#!/bin/bash
cd "`dirname "$0"`/.."
FPC_SRC_DIR="$PWD"
COMP_DIR="$FPC_SRC_DIR/compiler"
RTL_DIR="$FPC_SRC_DIR/rtl"
if [[ "$1" == "-B" ]] || [[ "$#" == 0 ]]
then
cd "$COMP_DIR"
fpc pp -gl -oppcsparc -dExtDebug -Fu"sparc;systems" -dSPARC -dNoOpt -dGDB "$1"
fi
if [[ "$#" -gt "0" ]] && ( [[ "$1" != "-B" ]] || [[ "$#" -gt "1" ]] )
then
cd "$FPC_SRC_DIR/tests/sparc"
if [[ "$1" == "-gdb" ]]
then
shift 1
SRC_DIR=`echo "$COMP_DIR/"{,sparc,systems}":"`
gdb -d "$SRC_DIR" --args "$COMP_DIR"/ppcsparc -s -al -Fi"$RTL_DIR"/{unix,linux,sparc,inc} -dSPARC "$@"
else
"$COMP_DIR"/ppcsparc -s -al -Fi"$RTL_DIR"/{unix,linux,sparc,inc,linux/sparc} -dSPARC "$@"
fi
fi