1 ------------------------------------------------------------------------------
3 -- GBIND BINDER COMPONENTS --
11 -- Copyright (C) 1992-2001 Free Software Foundation, Inc. --
13 -- GNAT is free software; you can redistribute it and/or modify it under --
14 -- terms of the GNU General Public License as published by the Free Soft- --
15 -- ware Foundation; either version 2, or (at your option) any later ver- --
16 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
17 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
18 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
19 -- for more details. You should have received a copy of the GNU General --
20 -- Public License distributed with GNAT; see file COPYING. If not, write --
21 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
22 -- MA 02111-1307, USA. --
24 -- GNAT was originally developed by the GNAT team at New York University. --
25 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
27 ------------------------------------------------------------------------------
29 with Osint; use Osint;
30 with Output; use Output;
34 -- Start of processing for Bindusg
39 Write_Str ("Usage: ");
42 Write_Str ("switches lfile");
46 -- Line for -aO switch
48 Write_Str (" -aOdir Specify library files search path");
51 -- Line for -aI switch
53 Write_Str (" -aIdir Specify source files search path");
58 Write_Str (" -A Generate binder program in Ada (default)");
63 Write_Str (" -b Generate brief messages to std");
64 Write_Str ("err even if verbose mode set");
69 Write_Str (" -c Check only, no generation of b");
70 Write_Str ("inder output file");
75 Write_Str (" -C Generate binder program in C");
80 Write_Str (" -e Output complete list of elabor");
81 Write_Str ("ation order dependencies");
86 Write_Str (" -E Store tracebacks in Exception occurrences");
91 Write_Str (" -h Output this usage (help) infor");
95 -- Lines for -I switch
97 Write_Str (" -Idir Specify library and source files search path");
100 Write_Str (" -I- Don't look for sources & library files");
101 Write_Str (" in default directory");
104 -- Line for -K switch
106 Write_Str (" -K Give list of linker options specified for link");
109 -- Line for -l switch
111 Write_Str (" -l Output chosen elaboration order");
116 Write_Str (" -Lxyz Library build: adainit/final ");
117 Write_Str ("renamed to xyzinit/final, implies -n");
120 -- Line for -M switch
122 Write_Str (" -Mxyz Rename generated main program from main to xyz");
125 -- Line for -m switch
127 Write_Str (" -mnnn Limit number of detected error");
128 Write_Str ("s to nnn (1-999)");
131 -- Line for -n switch
133 Write_Str (" -n No Ada main program (foreign main routine)");
136 -- Line for -nostdinc
138 Write_Str (" -nostdinc Don't look for source files");
139 Write_Str (" in the system default directory");
142 -- Line for -nostdlib
144 Write_Str (" -nostdlib Don't look for library files");
145 Write_Str (" in the system default directory");
148 -- Line for -o switch
150 Write_Str (" -o file Give the output file name (default is b~xxx.adb) ");
153 -- Line for -O switch
155 Write_Str (" -O Give list of objects required for link");
158 -- Line for -p switch
160 Write_Str (" -p Pessimistic (worst-case) elaborat");
161 Write_Str ("ion order");
164 -- Line for -r switch
166 Write_Str (" -r List restrictions that could be a");
167 Write_Str ("pplied to this partition");
170 -- Line for -s switch
172 Write_Str (" -s Require all source files to be");
173 Write_Str (" present");
176 -- Line for -Sxx switch
178 Write_Str (" -S?? Sin/lo/hi/xx for Initialize_Scalars");
179 Write_Str (" invalid/low/high/hex");
184 Write_Str (" -static Link against a static GNAT run time");
189 Write_Str (" -shared Link against a shared GNAT run time");
192 -- Line for -t switch
194 Write_Str (" -t Tolerate time stamp and other consistency errors");
197 -- Line for -T switch
199 Write_Str (" -Tn Set time slice value to n microseconds (n >= 0)");
202 -- Line for -v switch
204 Write_Str (" -v Verbose mode. Error messages, ");
205 Write_Str ("header, summary output to stdout");
208 -- Lines for -w switch
210 Write_Str (" -wx Warning mode. (x=s/e for supp");
211 Write_Str ("ress/treat as error)");
214 -- Line for -x switch
216 Write_Str (" -x Exclude source files (check ob");
217 Write_Str ("ject consistency only)");
220 -- Line for -z switch
222 Write_Str (" -z No main subprogram (zero main)");
227 Write_Str (" --RTS=dir specify the default source and object search path");
232 Write_Str (" lfile Library file names");