Commit 439ea939 authored by Theresa Pollinger's avatar Theresa Pollinger
Browse files

including necessary exastencils files, as taken from commit...

including necessary exastencils files, as taken from commit 802c318da86cd215435e3f8c498a20bf7c68ac55 in ScalaExaStencil
parent c7baea82
Requires a valid Compiler.jar located in /Compiler/Compiler.jar
Depending on your architecture and preference you can build it using ant (call ant in the Compiler folder) or using IntelliJ.
For the latter:
File -> Project Structure -> Project Settings -> Artifacts -> Click green plus sign -> Jar -> From modules with dependencies -> Module: Compiler; Main Class: Main
Output Directory -> $path_to_your_git$\Compiler
Save
Build -> Build Artifacts -> Compiler.jar -> build
(optional) adapt platform file used in Examples/generateExamples.sh
(optional) deactivate unrequired configurations in Examples/examples.sh
afterwards simply run
cd Examples
./generateExamples.sh
./compileExamples.sh
./runExamples.sh
#!/bin/bash
if [[ "$OSTYPE" == "linux-gnu" ]]; then
platform=lib/linux.platform
elif [[ "$OSTYPE" == "darwin"* ]]; then
platform=lib/mac.platform
fi
source examples.sh
echo generating code for $configList
echo
mkdir Debug 2>/dev/null
for config in $configList; do
echo generating $config ...
printf "\033]2;generating $config\007"
TIME=$( time java -cp compiler.jar Main $config.settings $config.knowledge $platform > ./Debug/${config##*/}_generateResult.txt; exit ${PIPESTATUS[0]}
)
RET=$?
echo $TIME
if [[ "$RET" -eq "0" ]]; then
printf "\033[32m\033[1mSuccess\033[0m"
else
printf "\033[31m\033[1mFailure\033[0m"
fi
echo
done
printf "\033]0;\a"
echo compiling code for $configList
echo
callPath=$(pwd)
for config in $configList; do
echo compiling $config ...
printf "\033]2;compiling $config\007"
cd $callPath/generated/${config##*/}
TIME=$( time make -j 8 > $callPath/Debug/${config##*/}_makeResult.txt; exit ${PIPESTATUS[0]} )
RET=$?
echo $TIME
if [[ "$RET" -eq "0" ]]; then
printf "\033[32m\033[1mSuccess\033[0m"
else
printf "\033[31m\033[1mFailure\033[0m"
fi
echo
done
printf "\033]0;\a"
echo running executables for $configList
echo
callPath=$(pwd)
for config in $configList; do
echo running $config ...
printf "\033]2;running $config\007"
cd $callPath/generated/${config##*/}
time ./exastencils
echo
done
printf "\033]0;\a"
\ No newline at end of file
targetOS = "Linux"
targetCompiler = "GCC"
targetCompilerVersion = 5
targetCompilerVersionMinor = 4
targetOS = "macOS"
targetCompilerBinary = "clang++-mp-4.0"
targetCompiler = "CLANG"
targetCompilerVersion = 4
targetCompilerVersionMinor = 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment