Skip to content

Orcc command line scripts

Antoine Lorence edited this page May 6, 2014 · 6 revisions

Use Orcc in command line

Orcc has been developed on top of Eclipse framework, with the help of Xtext SDK for code edition and generation and Graphiti SDK for networks edition.

It cannot be used as a fully standalone application, but can be run on the command line (even on servers without GUI). This page describes how to compile and run Orcc in command line.

Prerequisites

All scripts used to run Orcc in command-line are stored in the folder headless_build.

The only important thing to do before using the scripts in headless_build folder is to create a working directory with write permission somewhere in the system. In the next steps, we will use shell variables to store path to headless_build and working directory folders:

mkdir /opt/working_dir
export SCRIPTS_DIR=~/projects/ci-server-scripts/headless_build
export WORK_DIR=/opt/working_dir

Scripts usage

Once your working directory has been created, you can run the command line scripts in this order. Click on links below to obtain detailed information:

  1. orcc_eclipse_setup to build a basic build & run environment
  2. orcc_build to build Orcc from source and generate installable plugins
  3. orcc_run_compilation executes a back-end to produce source code or directly orcc_run_simulation to execute CAL design directly

Note

Headless scripts are written in Bash. They run under GNU/Linux systems but some issues have been reported under Mac OS.

Clone this wiki locally