OSDN Git Service

2006-10-31 Bob Duff <duff@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / targparm.ads
1 ------------------------------------------------------------------------------
2 --                                                                          --
3 --                        GNAT RUN-TIME COMPONENTS                          --
4 --                                                                          --
5 --                             T A R G P A R M                              --
6 --                                                                          --
7 --                                 S p e c                                  --
8 --                                                                          --
9 --          Copyright (C) 1999-2005, Free Software Foundation, Inc.         --
10 --                                                                          --
11 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
12 -- terms of the  GNU General Public License as published  by the Free Soft- --
13 -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
14 -- sion.  GNAT is distributed in the hope that it will be useful, but WITH- --
15 -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
16 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
17 -- for  more details.  You should have  received  a copy of the GNU General --
18 -- Public License  distributed with GNAT;  see file COPYING.  If not, write --
19 -- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
20 -- Boston, MA 02110-1301, USA.                                              --
21 --                                                                          --
22 -- As a special exception,  if other files  instantiate  generics from this --
23 -- unit, or you link  this unit with other files  to produce an executable, --
24 -- this  unit  does not  by itself cause  the resulting  executable  to  be --
25 -- covered  by the  GNU  General  Public  License.  This exception does not --
26 -- however invalidate  any other reasons why  the executable file  might be --
27 -- covered by the  GNU Public License.                                      --
28 --                                                                          --
29 -- GNAT was originally developed  by the GNAT team at  New York University. --
30 -- Extensive contributions were provided by Ada Core Technologies Inc.      --
31 --                                                                          --
32 ------------------------------------------------------------------------------
33
34 --  This package obtains parameters from the target runtime version of
35 --  System, to indicate parameters relevant to the target environment.
36
37 --  Conceptually, these parameters could be obtained using rtsfind, but
38 --  we do not do this for four reasons:
39
40 --    1. Compiling System for every compilation wastes time
41
42 --    2. This compilation impedes debugging by adding extra compile steps
43
44 --    3. There are recursion problems coming from compiling System itself
45 --        or any of its children.
46
47 --    4. The binder also needs the parameters, and we do not want to have
48 --        to drag a lot of front end stuff into the binder.
49
50 --  For all these reasons, we read in the source of System, and then scan
51 --  it at the text level to extract the parameter values.
52
53 --  Note however, that later on, when the ali file is written, we make sure
54 --  that the System file is at least parsed, so that the checksum is properly
55 --  computed and set in the ali file. This partially negates points 1 and 2
56 --  above although just parsing is quick and does not impact debugging much.
57
58 --  The parameters acquired by this routine from system.ads fall into four
59 --  categories:
60
61 --     1. Configuration pragmas, that must appear at the start of the file.
62 --        Any such pragmas automatically apply to any unit compiled in the
63 --        presence of this system file. Only a limited set of such pragmas
64 --        may appear as documented in the corresponding section below,
65
66 --     2. Target parameters. These are boolean constants that are defined
67 --        in the private part of the package giving fixed information
68 --        about the target architecture, and the capabilities of the
69 --        code generator and run-time library.
70
71 --     3. Identification information. This is an optional string constant
72 --        that gives the name of the run-time library configuration. This
73 --        line may be ommitted for a version of system.ads to be used with
74 --        the full Ada 95 run time.
75
76 --     4. Other characterisitics of package System. At the current time the
77 --        only item in this category is whether type Address is private.
78
79 with Rident; use Rident;
80 with Types;  use Types;
81
82 package Targparm is
83
84    ---------------------------
85    -- Configuration Pragmas --
86    ---------------------------
87
88    --  The following switches get set if the corresponding configuration
89    --  pragma is scanned from the source of system.ads. No other pragmas
90    --  are permitted to appear at the start of the system.ads source file.
91
92    --  If a pragma Discard_Names appears, then Opt.Global_Discard_Names is
93    --  set to True to indicate that all units must be compiled in this mode.
94
95    --  If a pragma Locking_Policy appears, then Opt.Locking_Policy is set
96    --  to the first character of the policy name, and Opt.Locking_Policy_Sloc
97    --  is set to System_Location.
98
99    --  If a pragma Normalize_Scalars appears, then Opt.Normalize_Scalars
100    --  is set True, as well as Opt.Init_Or_Norm_Scalars.
101
102    --  If a pragma Queuing_Policy appears, then Opt.Queuing_Policy is set
103    --  to the first character of the policy name, and Opt.Queuing_Policy_Sloc
104    --  is set to System_Location.
105
106    --  If a pragma Task_Dispatching_Policy appears, then the flag
107    --  Opt.Task_Dispatching_Policy is set to the first character of the
108    --  policy name, and Opt.Task_Dispatching_Policy_Sloc is set to
109    --  System_Location.
110
111    --  If a pragma Polling (On) appears, then the flag Opt.Polling_Required
112    --  is set to True.
113
114    --  If a pragma Detect_Blocking appears, then the flag Opt.Detect_Blocking
115    --  is set to True.
116
117    --  if a pragma Suppress_Exception_Locations appears, then the flag
118    --  Opt.Exception_Locations_Suppressed is set to True.
119
120    --  If a pragma Profile with a valid profile argument appears, then
121    --  the appropriate restrictions and policy flags are set.
122
123    --  The only other pragma allowed is a pragma Restrictions that specifies
124    --  a restriction that will be imposed on all units in the partition. Note
125    --  that in this context, only one restriction can be specified in a single
126    --  pragma, and the pragma must appear on its own on a single source line.
127
128    --  If package System contains exactly the line "type Address is private;"
129    --  then the flag Opt.Address_Is_Private is set True, otherwise this flag
130    --  is set False.
131
132    Restrictions_On_Target : Restrictions_Info;
133    --  Records restrictions specified by system.ads. Only the Set and Value
134    --  members are modified. The Violated and Count fields are never modified.
135    --  Note that entries can be set either by a pragma Restrictions or by
136    --  a pragma Profile.
137
138    -------------------
139    -- Run Time Name --
140    -------------------
141
142    --  This parameter should be regarded as read only by all clients of
143    --  of package. The only way they get modified is by calling the
144    --  Get_Target_Parameters routine which reads the values from a provided
145    --  text buffer containing the source of the system package.
146
147    --  The corresponding string constant is placed immediately at the start
148    --  of the private part of system.ads if is present, e.g. in the form:
149
150    --    Run_Time_Name : constant String := "Zero Footprint Run Time";
151
152    --  the corresponding messages will look something like
153
154    --    xxx not supported (Zero Footprint Run Time)
155
156    Run_Time_Name_On_Target : Name_Id := No_Name;
157    --  Set to appropriate names table entry Id value if a Run_Time_Name
158    --  string constant is defined in system.ads. This name is used only
159    --  for the configurable run-time case, and is used to parametrize
160    --  messages that complain about non-supported run-time features.
161    --  The name should contain only letters A-Z, digits 1-9, spaces,
162    --  and underscores.
163
164    -----------------------
165    -- Target Parameters --
166    -----------------------
167
168    --  The following parameters correspond to the variables defined in the
169    --  private part of System (without the terminating _On_Target). Note
170    --  that it is required that all parameters defined here be specified
171    --  in the target specific version of system.ads (there are no defaults).
172
173    --  All these parameters should be regarded as read only by all clients
174    --  of the package. The only way they get modified is by calling the
175    --  Get_Target_Parameters routine which reads the values from a provided
176    --  text buffer containing the source of the system package.
177
178    --  The default values here are used if no value is found in system.ads.
179    --  This should normally happen only if the special version of system.ads
180    --  used by the compiler itself is in use. The default values are suitable
181    --  for use by the compiler itself in normal environments. This approach
182    --  allows the possibility of new versions of the compiler (possibly with
183    --  new system parameters added) being used to compile older versions of
184    --  the compiler sources. This is not guaranteed to work, but often will
185    --  and by setting appropriate default values, we make it more likely that
186    --  this can succeed.
187
188    Compiler_System_Version : Boolean := True;
189    --  This is set False in all target dependent versions of System. In the
190    --  compiler default version, it is omitted entirely, meaning that the
191    --  above default value of True will be set. If the flag is False, then
192    --  the scanning circuits in the body of this package do an error check to
193    --  ensure that all parameters other than this one are specified and not
194    --  defaulted. If the parameter is set True, then this check is omitted,
195    --  and any parameters not present in system.ads are left set to their
196    --  default value as described above.
197
198    ----------------------------
199    -- Special Target Control --
200    ----------------------------
201
202    --  The great majority of GNAT ports are based on GCC. The switches in
203    --  This section indicate the use of some non-standard target back end
204    --  or other special targetting requirements.
205
206    AAMP_On_Target : Boolean := False;
207    --  Set to True if target is AAMP
208
209    OpenVMS_On_Target : Boolean := False;
210    --  Set to True if target is OpenVMS
211
212    -------------------------------
213    -- Backend Arithmetic Checks --
214    -------------------------------
215
216    --  Divide and overflow checks are either done in the front end or
217    --  back end. The front end will generate checks when required unless
218    --  the corresponding parameter here is set to indicate that the back
219    --  end will generate the required checks (or that the checks are
220    --  automatically performed by the hardware in an appropriate form).
221
222    Backend_Divide_Checks_On_Target : Boolean := False;
223    --  Set True if the back end generates divide checks, or if the hardware
224    --  checks automatically. Set False if the front end must generate the
225    --  required tests using explicit expanded code.
226
227    Backend_Overflow_Checks_On_Target : Boolean := False;
228    --  Set True if the back end generates arithmetic overflow checks, or if
229    --  the hardware checks automatically. Set False if the front end must
230    --  generate the required tests using explicit expanded code.
231
232    -----------------------------------
233    -- Control of Exception Handling --
234    -----------------------------------
235
236    --  GNAT implements three methods of implementing exceptions:
237
238    --    Front-End Longjmp/Setjmp Exceptions
239
240    --      This approach uses longjmp/setjmp to handle exceptions. It
241    --      uses less storage, and can often propagate exceptions faster,
242    --      at the expense of (sometimes considerable) overhead in setting
243    --      up an exception handler. This approach is available on all
244    --      targets, and is the default where it is the only approach.
245
246    --      The generation of the setjmp and longjmp calls is handled by
247    --      the front end of the compiler (this includes gigi in the case
248    --      of the standard GCC back end). It does not use any back end
249    --      suport (such as the GCC3 exception handling mechanism). When
250    --      this approach is used, the compiler generates special exception
251    --      handlers for handling cleanups when an exception is raised.
252
253    --    Front-End Zero Cost Exceptions
254
255    --      This approach uses separate exception tables. These use extra
256    --      storage, and exception propagation can be quite slow, but there
257    --      is no overhead in setting up an exception handler (it is to this
258    --      latter operation that the phrase zero-cost refers). This approach
259    --      is only available on some targets, and is the default where it is
260    --      available.
261
262    --      The generation of the exception tables is handled by the front
263    --      end of the compiler. It does not use any back end support (such
264    --      as the GCC3 exception handling mechanism). When this approach
265    --      is used, the compiler generates special exception handlers for
266    --      handling cleanups when an exception is raised.
267
268    --    Back-End Zero Cost Exceptions
269
270    --      With this approach, the back end handles the generation and
271    --      handling of exceptions. For example, the GCC3 exception handling
272    --      mechanisms are used in this mode. The front end simply generates
273    --      code for explicit exception handlers, and AT END cleanup handlers
274    --      are simply passed unchanged to the backend for generating cleanups
275    --      both in the exceptional and non-exceptional cases.
276
277    --      As the name implies, this approach generally uses a zero-cost
278    --      mechanism with tables, but the tables are generated by the back
279    --      end. However, since the back-end is entirely responsible for the
280    --      handling of exceptions, another mechanism might be used. In the
281    --      case of GCC3 for instance, it might be the case that the compiler
282    --      is configured for setjmp/longjmp handling, then everything will
283    --      work correctly. However, it is definitely preferred that the
284    --      back end provide zero cost exception handling.
285
286    --    Controlling the selection of methods
287
288    --      On most implementations, back-end zero-cost exceptions are used.
289    --      Otherwise, Front-End Longjmp/Setjmp approach is used.
290    --      Note that there is a requirement that all Ada units in a partition
291    --      be compiled with the same exception model.
292
293    --    Control of Available Methods and Defaults
294
295    --      The following switches specify whether ZCX is available, and
296    --      whether it is enabled by default.
297
298    ZCX_By_Default_On_Target : Boolean := False;
299    --  Indicates if zero cost exceptions are active by default. If this
300    --  variable is False, then the only possible exception method is the
301    --  front-end setjmp/longjmp approach, and this is the default. If
302    --  this variable is True, then GCC ZCX is used.
303
304    GCC_ZCX_Support_On_Target  : Boolean := False;
305    --  Indicates that the target supports GCC Exceptions
306
307    ------------------------------------
308    -- Run-Time Library Configuration --
309    ------------------------------------
310
311    --  In configurable run-time mode, the system run-time may not support
312    --  the full Ada language. The effect of setting this switch is to let
313    --  the compiler know that it is not surprising (i.e. the system is not
314    --  misconfigured) if run-time library units or entities within units are
315    --  not present in the run-time.
316
317    Configurable_Run_Time_On_Target : Boolean := False;
318    --  Indicates that the system.ads file is for a configurable run-time
319    --
320    --  This has some specific effects as follows
321    --
322    --    The binder generates the gnat_argc/argv/envp variables in the
323    --    binder file instead of being imported from the run-time library.
324    --    If Command_Line_Args_On_Target is set to False, then the
325    --    generation of these variables is suppressed completely.
326    --
327    --    The binder generates the gnat_exit_status variable in the binder
328    --    file instead of being imported from the run-time library. If
329    --    Exit_Status_Supported_On_Target is set to False, then the
330    --    generation of this variable is suppressed entirely.
331    --
332    --    The routine __gnat_break_start is defined within the binder file
333    --    instead of being imported from the run-time library.
334    --
335    --    The variable __gnat_exit_status is generated within the binder file
336    --    instead of being imported from the run-time library.
337
338    Suppress_Standard_Library_On_Target : Boolean := False;
339    --  If this flag is True, then the standard library is not included by
340    --  default in the executable (see unit System.Standard_Library in file
341    --  s-stalib.ads for details of what this includes). This is for example
342    --  set True for the zero foot print case, where these files should not
343    --  be included by default.
344    --
345    --  This flag has some other related effects:
346    --
347    --    The generation of global variables in the bind file is suppressed,
348    --    with the exception of the priority of the environment task, which
349    --    is needed by the Ravenscar run-time.
350    --
351    --    The calls to __gnat_initialize and __gnat_finalize are omitted
352    --
353    --    All finalization and initialization (controlled types) is omitted
354    --
355    --    The routine __gnat_handler_installed is not imported
356
357    Preallocated_Stacks_On_Target : Boolean := False;
358    --  If this flag is True, then the expander preallocates all task stacks
359    --  at compile time. If the flag is False, then task stacks are not pre-
360    --  allocated, and task stack allocation is the responsibility of the
361    --  run-time (which typically delegates the task to the underlying
362    --  operating system environment).
363
364    ---------------------
365    -- Duration Format --
366    ---------------------
367
368    --  By default, type Duration is a 64-bit fixed-point type with a delta
369    --  and small of 10**(-9) (i.e. it is a count in nanoseconds. This flag
370    --  allows that standard format to be modified.
371
372    Duration_32_Bits_On_Target : Boolean := False;
373    --  If True, then Duration is represented in 32 bits and the delta and
374    --  small values are set to 20.0*(10**(-3)) (i.e. it is a count in units
375    --  of 20 milliseconds.
376
377    ------------------------------------
378    -- Back-End Code Generation Flags --
379    ------------------------------------
380
381    --  These flags indicate possible limitations in what the code generator
382    --  can handle. They will all be True for a full run-time, but one or more
383    --  of these may be false for a configurable run-time, and if a feature is
384    --  used at the source level, and the corresponding flag is false, then an
385    --  error message will be issued saying the feature is not supported.
386
387    Support_64_Bit_Divides_On_Target : Boolean := True;
388    --  If True, the back end supports 64-bit divide operations. If False, then
389    --  the source program may not contain 64-bit divide operations. This is
390    --  specifically useful in the zero foot-print case, where the issue is
391    --  whether there is a hardware divide instruction for 64-bits so that
392    --  no run-time support is required. It should always be set True if the
393    --  necessary run-time support is present.
394
395    Support_Aggregates_On_Target : Boolean := True;
396    --  In the general case, the use of aggregates may generate calls
397    --  to run-time routines in the C library, including memset, memcpy,
398    --  memmove, and bcopy. This flag is set to True if these routines
399    --  are available. If any of these routines is not available, then
400    --  this flag is False, and the use of aggregates is not permitted.
401
402    Support_Composite_Assign_On_Target : Boolean := True;
403    --  The assignment of composite objects other than small records and
404    --  arrays whose size is 64-bits or less and is set by an explicit
405    --  size clause may generate calls to memcpy, memmove, and bcopy.
406    --  If versions of all these routines are available, then this flag
407    --  is set to True. If any of these routines is not available, then
408    --  the flag is set False, and composite assignments are not allowed.
409
410    Support_Composite_Compare_On_Target : Boolean := True;
411    --  If this flag is True, then the back end supports bit-wise comparison
412    --  of composite objects for equality, either generating inline code or
413    --  calling appropriate (and available) run-time routines. If this flag
414    --  is False, then the back end does not provide this support, and the
415    --  front end uses component by component comparison for composites.
416
417    Support_Long_Shifts_On_Target : Boolean := True;
418    --  If True, the back end supports 64-bit shift operations. If False, then
419    --  the source program may not contain explicit 64-bit shifts. In addition,
420    --  the code generated for packed arrays will avoid the use of long shifts.
421
422    -------------------------------
423    -- Control of Stack Checking --
424    -------------------------------
425
426    --  GNAT provides two methods of implementing exceptions:
427
428    --    GCC Probing Mechanism
429
430    --      This approach uses the standard GCC mechanism for
431    --      stack checking. The method assumes that accessing
432    --      storage immediately beyond the end of the stack
433    --      will result in a trap that is converted to a storage
434    --      error by the runtime system. This mechanism has
435    --      minimal overhead, but requires complex hardware,
436    --      operating system and run-time support. Probing is
437    --      the default method where it is available. The stack
438    --      size for the environment task depends on the operating
439    --      system and cannot be set in a system-independent way.
440
441    --   GNAT Stack-limit Checking
442
443    --      This method relies on comparing the stack pointer
444    --      with per-task stack limits. If the check fails, an
445    --      exception is explicitly raised. The advantage is
446    --      that the method requires no extra system dependent
447    --      runtime support and can be used on systems without
448    --      memory protection as well, but at the cost of more
449    --      overhead for doing the check. This method is the
450    --      default on systems that lack complete support for
451    --      probing.
452
453    Stack_Check_Probes_On_Target : Boolean := False;
454    --  Indicates if stack check probes are used, as opposed to the standard
455    --  target independent comparison method.
456
457    Stack_Check_Default_On_Target : Boolean := False;
458    --  Indicates if stack checking is on by default
459
460    ----------------------------
461    -- Command Line Arguments --
462    ----------------------------
463
464    --  For most ports of GNAT, command line arguments are supported. The
465    --  following flag is set to False for targets that do not support
466    --  command line arguments (VxWorks and AAMP). Note that support of
467    --  command line arguments is not required on such targets (RM A.15(13)).
468
469    Command_Line_Args_On_Target : Boolean := True;
470    --  Set False if no command line arguments on target. Note that if this
471    --  is False in with Configurable_Run_Time_On_Target set to True, then
472    --  this causes suppression of generation of the argv/argc variables
473    --  used to record command line arguments.
474
475    --  Similarly, most ports support the use of an exit status, but AAMP
476    --  is an exception (as allowed by RM A.15(18-20))
477
478    Exit_Status_Supported_On_Target : Boolean := True;
479    --  Set False if returning of an exit status is not supported on target.
480    --  Note that if this False in with Configurable_Run_Time_On_Target
481    --  set to True, then this causes suppression of the gnat_exit_status
482    --  variable used to record the exit status.
483
484    -----------------------
485    -- Main Program Name --
486    -----------------------
487
488    --  When the binder generates the main program to be used to create the
489    --  executable, the main program name is main by default (to match the
490    --  usual Unix practice). If this parameter is set to True, then the
491    --  name is instead by default taken from the actual Ada main program
492    --  name (just the name of the child if the main program is a child unit).
493    --  In either case, this value can be overridden using -M name.
494
495    Use_Ada_Main_Program_Name_On_Target : Boolean := False;
496    --  Set True to use the Ada main program name as the main name
497
498    ----------------------------------------------
499    -- Boolean-Valued Floating-Point Attributes --
500    ----------------------------------------------
501
502    --  The constants below give the values for representation oriented
503    --  floating-point attributes that are the same for all float types
504    --  on the target. These are all boolean values.
505
506    --  A value is only True if the target reliably supports the corresponding
507    --  feature. Reliably here means that support is guaranteed for all
508    --  possible settings of the relevant compiler switches (like -mieee),
509    --  since we cannot control the user setting of those switches.
510
511    --  The attributes cannot dependent on the current setting of compiler
512    --  switches, since the values must be static and consistent throughout
513    --  the partition. We probably should add such consistency checks in future,
514    --  but for now we don't do this.
515
516    --  Note: the compiler itself does not use floating-point, so the
517    --  settings of the defaults here are not really relevant.
518
519    --  Note: in some cases, proper support of some of these floating point
520    --  features may require a specific switch (e.g. -mieee on the Alpha)
521    --  to be used to obtain full RM compliant support.
522
523    Denorm_On_Target : Boolean := False;
524    --  Set to False on targets that do not reliably support denormals
525
526    Machine_Rounds_On_Target : Boolean := True;
527    --  Set to False for targets where S'Machine_Rounds is False
528
529    Machine_Overflows_On_Target : Boolean := False;
530    --  Set to True for targets where S'Machine_Overflows is True
531
532    Signed_Zeros_On_Target : Boolean := True;
533    --  Set to False on targets that do not reliably support signed zeros
534
535    -------------------------------------------
536    -- Boolean-Valued Fixed-Point Attributes --
537    -------------------------------------------
538
539    Fractional_Fixed_Ops_On_Target : Boolean := False;
540    --  Set to True for targets that support fixed-by-fixed multiplication
541    --  and division for fixed-point types with a small value equal to
542    --  2 ** (-(T'Object_Size - 1)) and whose values have an absolute
543    --  value less than 1.0.
544
545    --------------------------------------------------------------
546    -- Handling of Unconstrained Values Returned from Functions --
547    --------------------------------------------------------------
548
549    --  Functions that return variable length objects, notably unconstrained
550    --  arrays are a special case, because there is no simple obvious way of
551    --  implementing this feature. Furthermore, this capability is not present
552    --  in C++ or C, so typically the system ABI does not handle this case.
553
554    --  GNAT uses two different approaches
555
556    --    The Secondary Stack
557
558    --      The secondary stack is a special storage pool that is used for
559    --      this purpose. The called function places the result on the
560    --      secondary stack, and the caller uses or copies the value from
561    --      the secondary stack, and pops the secondary stack after the
562    --      value is consumed. The secondary stack is outside the system
563    --      ABI, and the important point is that although generally it is
564    --      handled in a stack like manner corresponding to the subprogram
565    --      call structure, a return from a function does NOT pop the stack.
566
567    --    DSP (Depressed Stack Pointer)
568
569    --      Some targets permit the implementation of a function call/return
570    --      protocol in which the function does not pop the main stack pointer
571    --      on return, but rather returns with the stack pointer depressed.
572    --      This is not generally permitted by any ABI, but for at least some
573    --      targets, the implementation of alloca provides a model for this
574    --      approach. If return-with-DSP is implemented, then functions that
575    --      return variable length objects do it by returning with the stack
576    --      pointer depressed, and the returned object is a pointer to the
577    --      area within the stack frame of the called procedure that contains
578    --      the returned value. The caller must then pop the main stack when
579    --      this value is consumed.
580
581    Functions_Return_By_DSP_On_Target : Boolean := False;
582    --  Set to True if target permits functions to return with using the
583    --  DSP (depressed stack pointer) approach.
584
585    -----------------
586    -- Data Layout --
587    -----------------
588
589    --  Normally when using the GCC backend, Gigi and GCC perform much of the
590    --  data layout using the standard layout capabilities of GCC. If the
591    --  parameter Backend_Layout is set to False, then the front end must
592    --  perform all data layout. For further details see the package Layout.
593
594    Frontend_Layout_On_Target : Boolean := False;
595    --  Set True if front end does layout
596
597    -----------------
598    -- Subprograms --
599    -----------------
600
601    --  These subprograms are used to initialize the target parameter values
602    --  from the system.ads file. Note that this is only done once, so if more
603    --  than one call is made to either routine, the second and subsequent
604    --  calls are ignored.
605
606    procedure Get_Target_Parameters
607      (System_Text  : Source_Buffer_Ptr;
608       Source_First : Source_Ptr;
609       Source_Last  : Source_Ptr);
610    --  Called at the start of execution to obtain target parameters from
611    --  the source of package System. The parameters provide the source
612    --  text to be scanned (in System_Text (Source_First .. Source_Last)).
613
614    procedure Get_Target_Parameters;
615    --  This version reads in system.ads using Osint. The idea is that the
616    --  caller uses the first version if they have to read system.ads anyway
617    --  (e.g. the compiler) and uses this simpler interface if system.ads is
618    --  not otherwise needed.
619
620 end Targparm;