Exo: Exocompilation for productive programming of hardware accelerators
Published on: 2025-06-14 05:35:47
Basics
Install Exo
We support Python versions 3.9 and above. If you're just using Exo, install it using pip :
$ pip install exo-lang
In case of ModuleNotFoundError: No module named 'attrs' please upgrade your attrs module by pip install --upgrade attrs .
Compile Exo
Exo files can be directly excuted with Python:
$ python exo_file.py
To generate generate C and header files, use exocc command:
$ exocc exo_file.py
Running the command will generate two files: exo_file.c and exo_file.h . These files will be created in a directory called exo_file/ by default. You can use optional arguments to customize the output:
The -o argument allows you to specify a different directory name.
argument allows you to specify a different directory name. The --stem argument allows you to specify custom names for the C file and header file.
Build Exo from source
We make active use of newer Python 3.x features. Please use Python 3.9 or 3.10 if you're getting errors about unsupported features.
Set
... Read full article.