summaryrefslogtreecommitdiff
path: root/gcc/ada/bindusg.adb
blob: 5a66e12ec838cfe01ce1295aff7dcb82b510476e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
------------------------------------------------------------------------------
--                                                                          --
--                        GBIND BINDER COMPONENTS                           --
--                                                                          --
--                             B I N D U S G                                --
--                                                                          --
--                                B o d y                                   --
--                                                                          --
--                                                                          --
--          Copyright (C) 1992-2001 Free Software Foundation, Inc.          --
--                                                                          --
-- GNAT is free software;  you can  redistribute it  and/or modify it under --
-- terms of the  GNU General Public License as published  by the Free Soft- --
-- ware  Foundation;  either version 2,  or (at your option) any later ver- --
-- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
-- for  more details.  You should have  received  a copy of the GNU General --
-- Public License  distributed with GNAT;  see file COPYING.  If not, write --
-- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
-- MA 02111-1307, USA.                                                      --
--                                                                          --
-- GNAT was originally developed  by the GNAT team at  New York University. --
-- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
--                                                                          --
------------------------------------------------------------------------------

with Osint;  use Osint;
with Output; use Output;

procedure Bindusg is

--  Start of processing for Bindusg

begin
   --  Usage line

   Write_Str ("Usage: ");
   Write_Program_Name;
   Write_Char (' ');
   Write_Str ("switches lfile");
   Write_Eol;
   Write_Eol;

   --  Line for -aO switch

   Write_Str ("  -aOdir    Specify library files search path");
   Write_Eol;

   --  Line for -aI switch

   Write_Str ("  -aIdir    Specify source files search path");
   Write_Eol;

   --  Line for A switch

   Write_Str ("  -A        Generate binder program in Ada (default)");
   Write_Eol;

   --  Line for -b switch

   Write_Str ("  -b        Generate brief messages to std");
   Write_Str ("err even if verbose mode set");
   Write_Eol;

   --  Line for -c switch

   Write_Str ("  -c        Check only, no generation of b");
   Write_Str ("inder output file");
   Write_Eol;

   --  Line for C switch

   Write_Str ("  -C        Generate binder program in C");
   Write_Eol;

   --  Line for -e switch

   Write_Str ("  -e        Output complete list of elabor");
   Write_Str ("ation order dependencies");
   Write_Eol;

   --  Line for -E switch

   Write_Str ("  -E        Store tracebacks in Exception occurrences");
   Write_Eol;

   --  Line for -h switch

   Write_Str ("  -h        Output this usage (help) infor");
   Write_Str ("mation");
   Write_Eol;

   --  Lines for -I switch

   Write_Str ("  -Idir     Specify library and source files search path");
   Write_Eol;

   Write_Str ("  -I-       Don't look for sources & library files");
   Write_Str (" in default directory");
   Write_Eol;

   --  Line for -K switch

   Write_Str ("  -K        Give list of linker options specified for link");
   Write_Eol;

   --  Line for -l switch

   Write_Str ("  -l        Output chosen elaboration order");
   Write_Eol;

   --  Line of -L switch

   Write_Str ("  -Lxyz     Library build: adainit/final ");
   Write_Str ("renamed to xyzinit/final, implies -n");
   Write_Eol;

   --  Line for -M switch

   Write_Str ("  -Mxyz     Rename generated main program from main to xyz");
   Write_Eol;

   --  Line for -m switch

   Write_Str ("  -mnnn     Limit number of detected error");
   Write_Str ("s to nnn (1-999)");
   Write_Eol;

   --  Line for -n switch

   Write_Str ("  -n        No Ada main program (foreign main routine)");
   Write_Eol;

   --  Line for -nostdinc

   Write_Str ("  -nostdinc Don't look for source files");
   Write_Str (" in the system default directory");
   Write_Eol;

   --  Line for -nostdlib

   Write_Str ("  -nostdlib Don't look for library files");
   Write_Str (" in the system default directory");
   Write_Eol;

   --  Line for -o switch

   Write_Str ("  -o file   Give the output file name (default is b~xxx.adb) ");
   Write_Eol;

   --  Line for -O switch

   Write_Str ("  -O        Give list of objects required for link");
   Write_Eol;

   --  Line for -p switch

   Write_Str ("  -p        Pessimistic (worst-case) elaborat");
   Write_Str ("ion order");
   Write_Eol;

   --  Line for -r switch

   Write_Str ("  -r        List restrictions that could be a");
   Write_Str ("pplied to this partition");
   Write_Eol;

   --  Line for -s switch

   Write_Str ("  -s        Require all source files to be");
   Write_Str (" present");
   Write_Eol;

   --  Line for -Sxx switch

   Write_Str ("  -S??      Sin/lo/hi/xx for Initialize_Scalars");
   Write_Str (" invalid/low/high/hex");
   Write_Eol;

   --  Line for -static

   Write_Str ("  -static   Link against a static GNAT run time");
   Write_Eol;

   --  Line for -shared

   Write_Str ("  -shared   Link against a shared GNAT run time");
   Write_Eol;

   --  Line for -t switch

   Write_Str ("  -t        Tolerate time stamp and other consistency errors");
   Write_Eol;

   --  Line for -T switch

   Write_Str ("  -Tn       Set time slice value to n microseconds (n >= 0)");
   Write_Eol;

   --  Line for -v switch

   Write_Str ("  -v        Verbose mode. Error messages, ");
   Write_Str ("header, summary output to stdout");
   Write_Eol;

   --  Lines for -w switch

   Write_Str ("  -wx       Warning mode. (x=s/e for supp");
   Write_Str ("ress/treat as error)");
   Write_Eol;

   --  Line for -x switch

   Write_Str ("  -x        Exclude source files (check ob");
   Write_Str ("ject consistency only)");
   Write_Eol;

   --  Line for -z switch

   Write_Str ("  -z        No main subprogram (zero main)");
   Write_Eol;

   --  Line for --RTS

   Write_Str ("  --RTS=dir specify the default source and object search path");
   Write_Eol;

   --  Line for sfile

   Write_Str ("  lfile     Library file names");
   Write_Eol;

end Bindusg;