Note: The C++ version of Xita Cross-Compiler is currently deprecated. For mathematical verifiability, the existing project is in process of being translated to Haskell. The code state of this repository is also badly in need of review by a third party.
This respository provides the Linux-to-Xita cross compiler. This Xita Control System compiler currently targets Arm64 architecture, though a current thrust area for development is to support Arm32 and x86 architectures.
$ mkdir CodeusTech && cd CodeusTech
$ git clone https://github.com/CodeusTech/Xita.git
$ sudo pacman -Syyu
$ sudo pacman -S make gcc flex bison
$ sudo yum update
$ sudo yum group install "Development Tools"
$ sudo dnf upgrade --refresh
$ sudo dnf groupinstall "Development Tools"
$ sudo dnf groupinstall "C Development Tools and Libraries"
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install build-essential flex flexc++ bison bisonc++
To use the Xita Cross-Compiler, we need a compliant AArch64 cross-compiler. Using the command below will uncompress the cross-assembler into the correct location for Xita internal use.
NOTE: Xita expects the cross assembler to reside in ~/.opt/cross.
$ cd Xita/
$ tar xf aarch64-assembler.tar.xz -C $HOME
$ make install
$ make build
$ make uninstall
The following usage commands assume XCS-AArch64 is installed on the current
Linux system. If it is only built (and not installed), you will need to
use: $ _build/xcs-aarch64 [...]
$ xcs-aarch64 [OPTIONS] [file1 file2 ...]
Command-line options can be fed to either the live interpreter or cross-compiler.
See the following list for option syntax and functionality.
- --version
- -v | --verbose
At present, Xita syntax highlighting is only available for Visual Studio Code.
After installing VS Code, execute the following to install the highlighter:
$ cd ~/.vscode/extensions/
$ git clone https://github.com/CodeusTech/Xita-SyntaxHighlighter
Restart VS Code if it doesn't register *.xs files immediately.