New Language: Ada
[gcc.git] / gcc / ada / hostparm.ads
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- H O S T P A R M --
6 -- --
7 -- S p e c --
8 -- --
9 -- $Revision: 1.18 $
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 -- As a special exception, if other files instantiate generics from this --
25 -- unit, or you link this unit with other files to produce an executable, --
26 -- this unit does not by itself cause the resulting executable to be --
27 -- covered by the GNU General Public License. This exception does not --
28 -- however invalidate any other reasons why the executable file might be --
29 -- covered by the GNU Public License. --
30 -- --
31 -- GNAT was originally developed by the GNAT team at New York University. --
32 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
33 -- --
34 ------------------------------------------------------------------------------
35
36 -- This package defines some system dependent parameters for GNAT. These
37 -- are parameters that are relevant to the host machine on which the
38 -- compiler is running, and thus this package is part of the compiler.
39
40 package Hostparm is
41 pragma Preelaborate (Hostparm);
42
43 -----------------------
44 -- TARGET Parameters --
45 -----------------------
46
47 -- ??? The following should really be moved to a Target package
48
49 Java_VM : constant Boolean := False;
50 -- Set true when compiling the JGNAT tool chain (compiler, gnatmake, etc)
51
52 ---------------------
53 -- HOST Parameters --
54 ---------------------
55
56 OpenVMS : Boolean := False;
57 -- Set True for OpenVMS host. See also OpenVMS target boolean in
58 -- 5vsystem.ads and OpenVMS_On_Target boolean in Targparm. This is
59 -- not a constant, because it can be modified by -gnatdm.
60
61 Normalized_CWD : constant String := "./";
62 -- Normalized string to access current directory
63
64 Max_Line_Length : constant := 255;
65 -- Maximum source line length. This can be set to any value up to
66 -- 2**15 - 1, a limit imposed by the assumption that column numbers
67 -- can be stored in 16 bits (see Types.Column_Number). A value of
68 -- 200 is the minimum value required (RM 2.2(15)), but we use 255
69 -- for most GNAT targets since this is DEC Ada compatible.
70
71 Max_Name_Length : constant := 1024;
72 -- Maximum length of unit name (including all dots, and " (spec)") and
73 -- of file names in the library, must be at least Max_Line_Length, but
74 -- can be larger.
75
76 Max_Instantiations : constant := 4000;
77 -- Maximum number of instantiations permitted (to stop runaway cases
78 -- of nested instantiations). These situations probably only occur in
79 -- specially concocted test cases.
80
81 Tag_Errors : constant Boolean := False;
82 -- If set to true, then brief form error messages will be prefaced by
83 -- the string "error:". Used as default for Opt.Unique_Error_Tag.
84
85 Exclude_Missing_Objects : constant Boolean := True;
86 -- If set to true, gnatbind will exclude from consideration all
87 -- non-existent .o files.
88
89 Max_Debug_Name_Length : constant := 256;
90 -- If a generated qualified debug name exceeds this length, then it
91 -- is automatically compressed, regardless of the setting of the
92 -- Compress_Debug_Names switch controlled by -gnatC.
93
94 end Hostparm;