#!/bin/bash

# This script invokes the RALF framework (fcc), and then the linker (fld).
# After compiling the target program, it move the binary file to gayatri.

TEMP_DIR="/tmp"
BIN_DIR="/misc/fijihome/gs3/fernando/bin"

$BIN_DIR/fcc -c -O2 $1 -o /tmp/fern.o;
$BIN_DIR/fld /tmp/fern.o;
mv a.out $(basename $1 .c);
scp $(basename $1 .c) root@gayatri:
