Используемый на сервере компилятор - Free Pascal 2.2.0
Компиляция программ на Pascal осуществляется следующим скриптом:
FPCRUN="/usr/lib/fpc/2.2.0/ppc386"
FPCDIR="/usr/lib/fpc/2.2.0"
if [ x"${FPCRUN}" = x -o x"${FPCRUN}" = xno ]
then
echo "This language is not supported." >&2
exit 1
fi
if [ x"${FPCDIR}" != x ]
then
PATH="${FPCDIR}:${PATH}"
fi
# These compilation options enables various run-time checks
#${FPCRUN} -Ci -Co -Cr -Ct -So -XS $1 -o${2}
# No run-time checks
"${FPCRUN}" ${EJUDGE_FLAGS} -So -XS "$1" "-o$2"
#if the output file is not created - compile error
[ -f "$2" ] || exit 1
exit 0
|