| [Top] | [Contents] | [Index] | [ ? ] |
1. Overview 2. Installation Installing Ada mode on your system 3. Customizing Ada mode Setting up Ada mode to your taste 4. Project files Describing the organization of your project 5. Syntax highlighting Using specific colors and fonts to highlight the structure of your files 6. Moving Through Ada Code Moving easily through Ada sources 7. Identifier completion Finishing words automatically 8. Index Menu of Subprograms A menu of all the types and subprograms defined in your application 9. File Browser Easy access to your files 10. Automatic Smart Indentation Indenting your code automatically as you type 11. Formatting Parameter Lists Formating subprograms parameter lists automatically 12. Automatic Casing Adjusting the case of words automatically 13. Statement Templates Inserting code templates 14. Comment Handling Reformatting comments easily 15. Compiling Executing Working with your application within Emacs 16. Debugging your application 17. Using non-standard file names Configuring Emacs for special file names 18. Working Remotely Working on a different machine Index
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The Emacs mode for programming in Ada 95 with GNAT helps the user in understanding existing code and facilitates writing new code. It furthermore provides some utility functions for easier integration of standard Emacs features when programming in Ada.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If you got Ada mode as a separate distribution, you should have a look at the `README' file. It explains the basic steps necessary for a good installation of the emacs Ada mode.
Installing the Ada mode is basically just a matter of copying a few files into the Emacs library directories. Every time you open a file with a file extension of `.ads' or `.adb', Emacs will automatically load and activate Ada mode.
See section 17. Using non-standard file names, if your files do not use these extensions and if you want Emacs to automatically start the Ada mode every time you edit an Ada file.
See also the Emacs Manual (see section `(Top' in The Emacs Manual)), for general usage variables that you might want to set.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This Ada mode works best with Emacs 20.3 or higher (the easy editing features for the project files won't work with any older version), but most of the commands should work with older versions too. Please try to install the most recent version of Emacs on your system before installing Ada mode.
Although part of Ada mode is compiler-independent, the most advanced features are specific to the Gnat compiler http://www.gnat.com.
The following files are provided with the Ada mode distribution:
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Ada mode is fully customizable. Everything, from the file names to the automatic indentation and the automatic casing can be adapted to your own needs.
There are two different kinds of variables that control this customization, both are easy to modify.
The first set of variables are standard Emacs variables. Of course, some
are defined only for Ada mode, whereas others have a more general
meaning in Emacs. Please see the Emacs documentation for more
information on the latest. In this documentation, we will detail all the
variables that are specific to Ada mode, and a few others. The names
will be given, as in ada-case-identifier.
Emacs provides an easy way to modify them, through a special mode called customization. To access this mode, select the menu `Ada->Customize'. This will open a new buffer with some fields that you can edit. For instance, you will get something like:
Put below the compiler switches. comp_opt= _____________________________________ |
When you are finished modifying the variables, you can simply click on the Save for future sessions button at the top of the buffer (click with the middle mouse button). This will save the values in your `.emacs' file, so that next time you start Emacs they will have the same values.
To modify a specific variable, you can directly call the function
customize-variable from Emacs (just type M-x
customize-variable RET variable-name RET).
Some users might prefer to modify the variables directly in their configuration file, `.emacs'. This file is coded in Emacs lisp, and the syntax to set a variable is the following:
(setq variable-name value) |
The second set of variables for customization are set through the use of project files. These variables are specific to a given project, whereas the first set was more general. For more information, please See section 4. Project files.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Emacs provides a full Integrated Development Environment for GNAT and Ada programmers. That is to say, editing, compiling, executing and debugging can be performed within Emacs in a convenient and natural way.
To take full advantage of this features, it is possible to create a file in the main directory of your application, with a `.adp' extension. This file contain all needed information dealing with the way your application is organized between directories, the commands to compile, run and debug it etc. Creating this file is not mandatory and convenient defaults are automatically provided for simple setups. It only becomes necessary when those above mentioned defaults need customizing.
A simple way to edit this file is provided for Emacs 20.2 or newer, with the following functions, that you can access also through the Ada menu. It is also possible to edit the project file as a regular text file.
Once in the buffer for editing the project file, you can save your modification using the `[OK]' button at the bottom of the buffer, or simply use the usual C-x C-s binding. To cancel your modifications, simply kill the buffer or click on the `[CANCEL]' button at the button.
Each buffer using Ada mode will be associated with one project file when there is one available, so that Emacs can easily navigate through related source files for instance.
The exact algorithm to determine which project file should be used is described in the next section, but you can force the project file you want to use by setting one or two variables in your `.emacs' file.
ada-prj-default-project-file to
the name of that file.
(set 'ada-prj-default-project-file "/dir1/dir2/file") |
ada-xref-default-prj-file.
(set 'ada-xref-default-prj-file
'(("/dir1/dir2" . "/dir3/file1")
("/dir4/dir5" . "/dir6/file2")))
|
Note: This has a higher priority than the first variable, so the first
choice is to use this variable settings, and otherwise
ada-prj-default-project-file.
ada-customize).
ada-change-prj).
ada-change-default-project). Every new file opened from this
directory will be associated with that file by default.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The following variables can be defined in a project file. They all have a default value, so that small projects do not need to create a project file.
Some variables below can be referenced in other variables, using a
shell-like notation. For instance, if the variable comp_cmd
contains a sequence like ${comp_opt}, the value of that variable
will be substituted.
Here is the list of variables:
src_dir [default: "./"]
obj_dir [default: "./"]
comp_opt [default: ""]
${comp_opt} notation. This is intended to store the default
switches given to gnatmake and gcc.
bind_opt=switches [default: ""]
${bind_opt} notation. This is intended to store the default
switches given to gnatbind.
link_opt=switches [default: ""]
${link_opt} notation. This is intended to store the default
switches given to gnatlink.
main=executable [default: ""]
${main}
notation.
cross_prefix=prefix [default: ""]
remote_machine=machine [default: ""]
rsh command, unknown on Windows.
comp_cmd=command [default: "${cross_prefix}gcc -c -I${src_dir} -g -gnatq"]
make_cmd=command [default: "${cross_prefix}gnatmake ${main} -aI${src_dir} -aO${obj_dir} -g -gnatq -cargs ${comp_opt} -bargs ${bind_opt} -largs ${link_opt}"]'
run_cmd=command [default: "${main}"]
debug_cmd=command [default: "${cross_prefix}gdb ${main}"]
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This section gives more details on the project file setup and is only of interest for advanced users.
Usually, an Ada file is part of a larger application, whose sources and objects can be spread over multiple directories. The first time emacs is asked to compile, run or debug an application, or when a cross reference function is used (goto declaration for instance), the following steps are taken:
ada-xref-default-prj-file described above.
ada-prj-default-project-file is set,
use the project file specified in this variable.
The first project file that is selected in a given directory becomes the default project file for this directory and is used implicitly for other sources unless specified otherwise by the user.
obj_dir defined
in the project file. If this file can not be found, emacs proposes to
compile the source using the comp_cmd defined in the project file
in order to create the ali file.
ada-xref-create-ali is set, otherwise the reference is searched
in the obsolete ali file with possible inaccurate results.
src_dir defined in the project file. Put the cursor at the
correct position and display this new cursor.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Ada mode is made to help you understand the structure of your source files. Some people like having colors or different fonts depending on the context: commands should be displayed differently than keywords, which should also be different from strings, ...
Emacs is able to display in a different way the following syntactic entities:
This is not the default behavior for Emacs. You have to explicitly activate it. This requires that you add a new line in your `.emacs' file (if this file does not exist, just create it).
(global-font-lock-mode t) |
But the default colors might not be the ones you like. Fortunately, there is a very easy way to change them. Just select the menu `Help->Customize->Specific Face...' and press RET. This will display a buffer will all the "faces" (the colors) that Emacs knows about. You can change any of them.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
There are several easy to use commands to stroll through Ada code. All these functions are available through the Ada menu, and you can also use the following key bindings or the command names:
ada-next-procedure).
ada-previous-procedure).
end (ada-move-to-start). If
point is at the end of a subprogram, this command jumps to the
corresponding begin if the user option
ada-move-to-declaration is nil (default), it jumps to
the subprogram declaration otherwise.
ada-move-to-end).
ff-find-other-file). If the cursor is on a subprogram, switch
between declaration and body.
ada-find-references). Use
C-x ` (next-error) to visit each reference (as for
compilation errors).
These functions use the information in the output of the Gnat Ada compiler. However, if your application was compiled with the `-gnatx' switch, these functions will not work, since no extra information is generated by GNAT. See GNAT documentation for further information.
Emacs will try to run Gnat for you whenever the cross-reference
informations are older than your source file (provided the
ada-xref-create-ali variable is non-nil). Gnat then produces a
file with the same name as the current Ada file but with the extension
changed to `.ali'. This files are normally used by the binder, but
they will also contain additional cross-referencing information.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Emacs and Ada mode provide two general ways for the completion of identifiers. This is an easy way to type faster: you just have to type the first few letters of an identifiers, and then loop through all the possible completions.
The first method is general for Emacs. It will work both with Ada buffers, but also in C buffers, Java buffers, .... The idea is to parse all the opened buffers for possible completions.
For instance, if the words `my_identifier', `my_subprogram' are the only words starting with `my' in any of the opened files, then you will have this scenario:
You type: myM-/ Emacs inserts: `my_identifier' If you press M-/ once again, Emacs replaces `my_identifier' with `my_subprogram'. Pressing M-/ once more will bring you back to `my_identifier'.
This is a very fast way to do completion, and the casing of words will also be respected.
The second method is specific to Ada buffer, and even to users of the Gnat compiler. Emacs will search the cross-information found in the `.ali' files generated by Gnat for possible completions.
The main advantage is that this completion is more accurate: only existing identifier will be suggested, you don't need to have a file opened that already contains this identifiers, ....
On the other hand, this completion is a little bit slower and requires that you have compiled your file at least once since you created that identifier.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
ada-complete-identifier).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You can display a choice menu with all procedure/function/task declarations in the file and choose an item by mouse click to get to its declaration. This function is accessible through the `Ada' menu when editing a Ada file, or simply through the following key binding:
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Emacs provides a special mode, called speedbar. When this mode is
activated, a new frame is displayed, with a file browser. The files from
the current directory are displayed, and you can click on them as you
would with any file browser. The following commands are then available.
You can click on a directory name or file name to open it. The editor will automatically select the best possible mode for this file, including of course Ada mode for files written in Ada.
If you click on the `[+]' symbol near a file name, all the symbols (types, variables and subprograms) defined in that file will be displayed, and you can directly click on them to open the right file at the right place.
You can activate this mode by typing M-x speedbar in the editor. This will open a new frame. A better way might be to assicate the following key binding
(global-set-key [f7] 'speedbar-get-focus) |
Every time you press F7, the mouse will automatically move to the speedbar frame (which will be created if it does not exist).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Ada mode comes with a full set of rules for automatic indentation. You can of course configure the indentation as you want, by setting the value of a few variables.
As always, the preferred way to modify variables is to use the `Ada->Customize' menu (don't forget to save your changes!). This will also show you some example of code where this variable is used, and hopefully make things clearer.
The relevant variables are the following:
ada-broken-indent (default value: 2)
ada-indent (default value: 3)
ada-indent-record-rel-type (default value: 3)
record relative to type or use.
ada-indent-return (default value: 0)
return relative to function (if
ada-indent-return is greater than 0), or the open parenthesis
(if ada-indent-return is negative or null). Note that in the second
case, when there is no open parenthesis, the indentation is done
relative to function with the value of ada-broken-indent.
ada-label-indent (default value: -4)
ada-stmt-end-indent (default value: 0)
end keyword on a separate line.
ada-when-indent (default value: 3)
when relative to exception or case.
ada-indent-is-separate (default value: t)
nil means indent is separate or is abstract if on a single line.
ada-indent-to-open-paren (default value: t)
nil means indent according to the innermost open parenthesis.
ada-indent-after-return (default value: t)
nil means that the current line will also be re-indented before
inserting a newline, when you press RET.
Most of the time, the indentation will be automatic, i.e when you will press RET, the cursor will move to the correct column on the next line.
However, you might want or need sometimes to re-indent the current line or a set of lines. For this, you can simply go to that line, or select the lines, and then press TAB. This will automatically re-indent the lines.
Another mode of indentation exists that helps you to set up your indentation scheme. If you press C-c TAB, Ada mode will do the following:
The exact indentation of the current line is the same as the one for the reference line, plus an offset given by the variable.
Once you know the name of the variable, you can either modify it through the usual `Ada->Customize' menu, or by typing M-x customize-variable RET in the Emacs window, and then give the name of the variable.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
To help you correctly align fields in a subprogram parameter list,
Emacs provides one function that will do most of the work for you.
This function will align the declarations on the colon (`:')
separating argument names and argument types, plus align the
in, out and in out keywords if required.
ada-format-paramlist).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Casing of identifiers, attributes and keywords is automatically
performed while typing when the variable ada-auto-case is set.
Every time you press a word separator, the previous word is
automatically cased.
You can customize the automatic casing differently for keywords,
attributes and identifiers. The relevant variables are the following:
ada-case-keyword, ada-case-attribute and
ada-case-identifier.
All these variables can have one of the following values:
downcase-word
My_vARIable is converted to my_variable.
upcase-word
My_vARIable is converted to MY_VARIABLE.
ada-capitalize-word
My_vARIable is converted to My_Variable.
ada-loose-case-word
My_vARIable is
converted to My_VARIable.
These functions, although they will work in most cases, will not be accurate sometimes. The Ada mode allows you to define some exceptions, that will always be cased the same way.
The idea is to create a dictionary of exceptions, and store it in a
file. This file should contain one identifier per line, with the casing
you want to force. The default name for this file is
`~/.emacs_case_exceptions'. You can of course change this name,
through the variable ada-case-exception-file.
Note that each line in this file must start with the key word whose casing you want to specify. The rest of the line can be used for comments (explaining for instance what an abbreviation means, as recommended in the Ada 95 Quality and Style, paragraph 3.1.4). Thus, a good example for this file could be:
DOD Department of Defense Text_IO GNAT The GNAT compiler from Ada Core Technologies |
When working on project involving multiple programmers, we recommend that every member of the team sets this variable to the same value, which should point to a system-wide file that each of them can write. That way, you will ensure that the casing is consistent throughout your application(s).
There are two ways to add new items to this file: you can simply edit it
as you would edit any text file, and add or suppress entries in this
file. Remember that you should put one entity per line. The other,
easier way, is to position the cursor over the word you want to add, in
an Ada buffer. This word should have the casing you want. Then simply
select the menu `Ada->Edit->Create Case Exception', or the key
C-c C-y (ada-create-case-exception). The word will
automatically be added to the current list of exceptions and to the file.
It is sometimes useful to have multiple exception files around (for
instance, one could be the standard Ada acronyms, the second some
company specific exceptions, and the last one some project specific
exceptions). If you set up the variable ada-case-exception-file
as a list of files, each of them will be parsed and used in your emacs
session.
However, when you save a new exception through the menu, as described above, the new exception will be added to the first file in the list only. You can not automatically add an exception to one of the other files, although you can of course edit the files by hand at any time.
Automatic casing can be performed on port or whole buffer using:
ada-adjust-case-buffer).
ada-create-case-exception)
ada-case-exception-file (ada-case-read-exceptions).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
NOTE: This features are not available on VMS for Emacs 19.28. The functions used here do not exist on Emacs 19.28.
Templates exist for most Ada statements. They can be inserted in the buffer using the following commands:
ada-exception-block).
ada-case).
ada-declare-block).
ada-else).
ada-for-loop).
ada-header).
ada-if).
ada-package-body).
ada-loop).
ada-subprogram-body).
ada-task-body).
ada-while).
ada-use).
ada-exit).
ada-array).
ada-elsif).
ada-function-spec).
ada-package-spec).
ada-package-spec.
ada-record).
ada-subtype).
ada-task-spec).
ada-with).
ada-private).
ada-when).
ada-exception).
ada-type).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
By default, comment lines get indented like Ada code. There are a few additional functions to handle comments:
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
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
compile command from the
Ada menu. It compiles unconditionally the current source using the
comp_cmd variable of the project file. Compilation options can be
customized with the variable comp_opt of the project file.
Emacs will display a new buffer that contains the result of the compilation. Each line associated with an error will become active: you can simply click on it with the middle button of the mouse, or move the cursor on it and press RET. Emacs will then display the relevant source file and put the cursor on the line and column the error was found at.
You can also simply press the C-x ` key and Emacs will jump to the first error. If you press that key again, it will move you to the second error, and so on.
Some error messages might also include references to some files. These references are also clickable in the same way.
build command from the
Ada menu. It compiles all obsolete units of the current application
using the make_cmd variable of the project file. Compilation
options can be customized with the variable comp_opt of the
project file, binder options with bind_opt and linker options
with link_opt. The main unit of the application may be specified
with main.
The compilation buffer is also active in the same way it was for the above command.
run command from the
Ada menu. It executes the current application in an emacs
buffer. Arguments can be passed through before executing. The execution
buffer allows for interactive input/output.
This command is not yet available in a cross-compilation toolchain. Emacs would first need to log on the target before running the application. This will be implemented in a future release of Gnat.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You can set up in the project file a command to use to debug your application. Emacs is compatible with a lot of debuggers, and provide an easy interface to them.
This selection will focus on the gdb debugger, and two of the graphical interfaces that exist for it.
In all cases, the main window in Emacs will be split in two: in the
upper buffer, the source code will appear, whereas the debugger
input/output window is displayed at the bottom. You can enter the
debugger commands as usual in the command window. Every time a new
source file is selected by the debugger (for instance as a result of a
frame command), the appropriate source file is displayed in the
upper buffer.
The source window is interactive: you can click on an identifier with the right mouse button, and print its value in the debugger window. You can also set a breakpoint simply by right-clicking on a line.
You can easily use Emacs as the source window when you are using a graphical interface for the debugger. The interesting thing is that, whereas you still have the graphical nifties, you can also you the cross-references features that Ada mode provides to look at the definition for the identifiers, ....
Here is how you can set up gdbtk and ddd for use with Emacs (These are the commands you should setup in the project file):
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
By default, Emacs is configured to use the GNAT style file names, where file names are the package names, and the extension for spec and bodies are respectively `.ads' and `.adb'.
If you want to use other types of file names, you will need to modify your `.emacs' file.
Adding new possible extensions is easy. Since Ada mode needs to know how to go from the body to the spec (and back), you always have to specify both. A function is provided with Ada mode to add new extensions.
For instance, if your spec and bodies files are called `unit_s.ada' and `unit_b.ada', respectively, you need to add the following to your `.emacs' file:
(ada-add-extensions "_s.ada" "_b.ada") |
Note that it is possible to redefine the extension, even if they already exist, as in:
(ada-add-extensions ".ads" "_b.ada") (ada-add-extensions ".ads" ".body") |
This simply means that whenever the ada-mode will look for the body for a file whose extension is `.ads', it will take the first available file that ends with either `.adb' (standard), `_b.ada' or `.body'.
If the filename is not the unit name, then things are a little more
complicated. You then need to rewrite the function
ada-make-filename-from-adaname (see the file `ada-mode.el'
for an example).
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
When you work on project that involve a lot of programmers, it is generally the case that you will edit the files on your own machine, but you want to compile, run and debug your application in another buffer.
Fortunately, here too Emacs provides a very convenient way to do this.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
First of all, the files do not need to be on your machine. Emacs can
edit any remote file, by doing transparent FTP sessions between your
machine and the remote machine that stores your files. This is a special
Emacs mode, called ange-ftp. To use it, you just have to use a
slightly different syntax when you open a file.
For instance, if you want to open the file `/work/foo.adb' on the machine aleph.gnu.org, where you log in as qwe, you would simply do this:
C-x C-f /qwe@aleph.gnu.org:/work/foo.adb RET |
i.e., use your name, the name of the machine and the name of the file.
The first time, Emacs will ask you for a password that it will remember until you close the current Emacs. Even if the ftp session times out, you won't need to reenter your password.
Every time you save the file, Emacs will upload it to the remote machine transparently. No file is modified on the local machine.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
If the machine you want to compile on is not the one your Emacs is
running on, you can set the variable remote_machine in the
project file for your application.
This will force Emacs to issue a rsh command for the compilation,
instead of running it on the local machine. Unfortunately, this won't
work on Windows workstations, since this protocol is not supported.
If your |
The advantage of using the remote_machine variable is that it is
easier to change that machine without having to modify the compilation
command.
Note that if you need to set up some environment variables before the compilation, you need to insert a call to the appropriate initialization script in the compilation command, for instance:
build_cmd= initialization_script; cd /work/ && gnatmake foo |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This feature is not completely implemented yet.
However, most of the time, you will be able to run your application
remotely simply by replacing it with a rsh call.
For instance, if your command was ${main}, you could replace it with
rsh aleph.gnu.org ${main}.
However, this would not work on vxworks, for instance, where
rsh is not supported.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| Jump to: | A |
|---|
| Jump to: | A |
|---|
| [Top] | [Contents] | [Index] | [ ? ] |
| [Top] | [Contents] | [Index] | [ ? ] |
1. Overview
2. Installation
3. Customizing Ada mode
4. Project files
5. Syntax highlighting
6. Moving Through Ada Code
7. Identifier completion
8. Index Menu of Subprograms
9. File Browser
10. Automatic Smart Indentation
11. Formatting Parameter Lists
12. Automatic Casing
13. Statement Templates
14. Comment Handling
15. Compiling Executing
16. Debugging your application
17. Using non-standard file names
18. Working Remotely
Index
| [Top] | [Contents] | [Index] | [ ? ] |
| Button | Name | Go to | From 1.2.3 go to |
|---|---|---|---|
| [ < ] | Back | previous section in reading order | 1.2.2 |
| [ > ] | Forward | next section in reading order | 1.2.4 |
| [ << ] | FastBack | previous or up-and-previous section | 1.1 |
| [ Up ] | Up | up section | 1.2 |
| [ >> ] | FastForward | next or up-and-next section | 1.3 |
| [Top] | Top | cover (top) of document | |
| [Contents] | Contents | table of contents | |
| [Index] | Index | concept index | |
| [ ? ] | About | this page |