OSDN Git Service

* 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
[pf3gnuchains/gcc-fork.git] / gcc / ada / bindusg.adb
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                        GBIND BINDER COMPONENTS                           --
4 --                                                                          --
5 --                             B I N D U S G                                --
6 --                                                                          --
7 --                                B o d y                                   --
8 --                                                                          --
9 --                            $Revision$
10 --                                                                          --
11 --          Copyright (C) 1992-2001 Free Software Foundation, Inc.          --
12 --                                                                          --
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.                                                      --
23 --                                                                          --
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). --
26 --                                                                          --
27 ------------------------------------------------------------------------------
28
29 with Osint;  use Osint;
30 with Output; use Output;
31
32 procedure Bindusg is
33
34 --  Start of processing for Bindusg
35
36 begin
37    --  Usage line
38
39    Write_Str ("Usage: ");
40    Write_Program_Name;
41    Write_Char (' ');
42    Write_Str ("switches lfile");
43    Write_Eol;
44    Write_Eol;
45
46    --  Line for -aO switch
47
48    Write_Str ("  -aOdir    Specify library files search path");
49    Write_Eol;
50
51    --  Line for -aI switch
52
53    Write_Str ("  -aIdir    Specify source files search path");
54    Write_Eol;
55
56    --  Line for A switch
57
58    Write_Str ("  -A        Generate binder program in Ada (default)");
59    Write_Eol;
60
61    --  Line for -b switch
62
63    Write_Str ("  -b        Generate brief messages to std");
64    Write_Str ("err even if verbose mode set");
65    Write_Eol;
66
67    --  Line for -c switch
68
69    Write_Str ("  -c        Check only, no generation of b");
70    Write_Str ("inder output file");
71    Write_Eol;
72
73    --  Line for C switch
74
75    Write_Str ("  -C        Generate binder program in C");
76    Write_Eol;
77
78    --  Line for -e switch
79
80    Write_Str ("  -e        Output complete list of elabor");
81    Write_Str ("ation order dependencies");
82    Write_Eol;
83
84    --  Line for -E switch
85
86    Write_Str ("  -E        Store tracebacks in Exception occurrences");
87    Write_Eol;
88
89    --  Line for -h switch
90
91    Write_Str ("  -h        Output this usage (help) infor");
92    Write_Str ("mation");
93    Write_Eol;
94
95    --  Lines for -I switch
96
97    Write_Str ("  -Idir     Specify library and source files search path");
98    Write_Eol;
99
100    Write_Str ("  -I-       Don't look for sources & library files");
101    Write_Str (" in default directory");
102    Write_Eol;
103
104    --  Line for -K switch
105
106    Write_Str ("  -K        Give list of linker options specified for link");
107    Write_Eol;
108
109    --  Line for -l switch
110
111    Write_Str ("  -l        Output chosen elaboration order");
112    Write_Eol;
113
114    --  Line of -L switch
115
116    Write_Str ("  -Lxyz     Library build: adainit/final ");
117    Write_Str ("renamed to xyzinit/final, implies -n");
118    Write_Eol;
119
120    --  Line for -M switch
121
122    Write_Str ("  -Mxyz     Rename generated main program from main to xyz");
123    Write_Eol;
124
125    --  Line for -m switch
126
127    Write_Str ("  -mnnn     Limit number of detected error");
128    Write_Str ("s to nnn (1-999)");
129    Write_Eol;
130
131    --  Line for -n switch
132
133    Write_Str ("  -n        No Ada main program (foreign main routine)");
134    Write_Eol;
135
136    --  Line for -nostdinc
137
138    Write_Str ("  -nostdinc Don't look for source files");
139    Write_Str (" in the system default directory");
140    Write_Eol;
141
142    --  Line for -nostdlib
143
144    Write_Str ("  -nostdlib Don't look for library files");
145    Write_Str (" in the system default directory");
146    Write_Eol;
147
148    --  Line for -o switch
149
150    Write_Str ("  -o file   Give the output file name (default is b~xxx.adb) ");
151    Write_Eol;
152
153    --  Line for -O switch
154
155    Write_Str ("  -O        Give list of objects required for link");
156    Write_Eol;
157
158    --  Line for -p switch
159
160    Write_Str ("  -p        Pessimistic (worst-case) elaborat");
161    Write_Str ("ion order");
162    Write_Eol;
163
164    --  Line for -r switch
165
166    Write_Str ("  -r        List restrictions that could be a");
167    Write_Str ("pplied to this partition");
168    Write_Eol;
169
170    --  Line for -s switch
171
172    Write_Str ("  -s        Require all source files to be");
173    Write_Str (" present");
174    Write_Eol;
175
176    --  Line for -Sxx switch
177
178    Write_Str ("  -S??      Sin/lo/hi/xx for Initialize_Scalars");
179    Write_Str (" invalid/low/high/hex");
180    Write_Eol;
181
182    --  Line for -static
183
184    Write_Str ("  -static   Link against a static GNAT run time");
185    Write_Eol;
186
187    --  Line for -shared
188
189    Write_Str ("  -shared   Link against a shared GNAT run time");
190    Write_Eol;
191
192    --  Line for -t switch
193
194    Write_Str ("  -t        Tolerate time stamp and other consistency errors");
195    Write_Eol;
196
197    --  Line for -T switch
198
199    Write_Str ("  -Tn       Set time slice value to n microseconds (n >= 0)");
200    Write_Eol;
201
202    --  Line for -v switch
203
204    Write_Str ("  -v        Verbose mode. Error messages, ");
205    Write_Str ("header, summary output to stdout");
206    Write_Eol;
207
208    --  Lines for -w switch
209
210    Write_Str ("  -wx       Warning mode. (x=s/e for supp");
211    Write_Str ("ress/treat as error)");
212    Write_Eol;
213
214    --  Line for -x switch
215
216    Write_Str ("  -x        Exclude source files (check ob");
217    Write_Str ("ject consistency only)");
218    Write_Eol;
219
220    --  Line for -z switch
221
222    Write_Str ("  -z        No main subprogram (zero main)");
223    Write_Eol;
224
225    --  Line for --RTS
226
227    Write_Str ("  --RTS=dir specify the default source and object search path");
228    Write_Eol;
229
230    --  Line for sfile
231
232    Write_Str ("  lfile     Library file names");
233    Write_Eol;
234
235 end Bindusg;