15 Compiling Executing

Ada mode provides a much complete environment for compiling, debugging and running an application within Emacs.

All the commands used by Emacs to manipulate your application can be customized in the project file. Some default values are provided, but these will likely not be good enough for a big or even medium-sized project. See the section on the project file for an explanation on how to set up the commands to use.

One of the variables you can set in your project file, cross_prefix, indicates whether you are using a cross-compilation environment, and if yes for which target. The default command used for compilation will add this cross_prefix in front of the name: gcc will become cross_prefix-gcc, gnatmake will become cross_prefix-gnatmake, ...

This will also modify the way your application is run and debugged, although this is not implemented at the moment.

Here are the commands for building and using an Ada application