mcode backend#
The mcode backend is available for all supported platforms and is also the simplest procedure, because it requires the fewest dependencies and configuration options.
GCC/GNAT: GNU/Linux or Windows (MinGW/MSYS2)#
Requirements
GCC (Gnu Compiler Collection)
GNAT (Ada compiler for GCC)
GHDL is configured by configure and built by make.
First, GHDL needs to be configured. It is common to specify a
PREFIX(installation directory like/usr/localor/opt/ghdl). Without any other option,configureselects mcode as the backend.Next,
makestarts the compilation process.Finally,
make installinstalls GHDL into the installation directory specified byPREFIX.
Hint
ON GNU/Linux, you may need super user privileges (sudo ...).
Example:
$ cd <ghdl>
$ mkdir build
$ cd build
$ ../configure --prefix=PREFIX
$ make
$ make install
GNAT GPL: Windows#
Requirements
GNAT GPL from http://libre.adacore.com
PowerShell 4
PowerShell Community Extensions (PSCX)
compile.ps1
Commands Description
--------------------------------------------------------------------
-Help Display the integrated help pages
-Clean Clean up all files and directories
-Compile Compile GHDL
-Install Install all files into a directory (xcopy deployment)
-Uninstall Uninstall all files from a directory
-Update Update files in the installation directory
-CreatePackage create an installer package
Install options:
-InstallPath Installation directory
CreatePackage options:
-Zip Create a zip-file for xcopy deployment