* config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
[official-gcc.git] / gcc / ada / get_targ.ads
blobdb4120c1c9666eb7816c3464e4c8b18a53eb4038
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT COMPILER COMPONENTS --
4 -- --
5 -- G E T _ T A R G --
6 -- --
7 -- S p e c --
8 -- --
9 -- --
10 -- Copyright (C) 1992-2000 Free Software Foundation, Inc. --
11 -- --
12 -- GNAT is free software; you can redistribute it and/or modify it under --
13 -- terms of the GNU General Public License as published by the Free Soft- --
14 -- ware Foundation; either version 2, or (at your option) any later ver- --
15 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
16 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
17 -- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
18 -- for more details. You should have received a copy of the GNU General --
19 -- Public License distributed with GNAT; see file COPYING. If not, write --
20 -- to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, --
21 -- MA 02111-1307, USA. --
22 -- --
23 -- GNAT was originally developed by the GNAT team at New York University. --
24 -- It is now maintained by Ada Core Technologies Inc (http://www.gnat.com). --
25 -- --
26 ------------------------------------------------------------------------------
28 -- This package provides an Import to the C functions which provide
29 -- values related to types on the target system. It is only needed for
30 -- exp_dbug and the elaboration of ttypes.
32 -- NOTE: Any changes in this package must be reflected in jgettarg.ads!
34 -- Note that all these values return sizes of C types with corresponding
35 -- names. This allows GNAT to define the corresponding Ada types to have
36 -- the same representation. There is one exception to this: the
37 -- Wide_Character_Type uses twice the size of a C char, instead of the
38 -- size of wchar_t.
40 with Types; use Types;
42 package Get_Targ is
43 pragma Preelaborate (Get_Targ);
45 function Get_Bits_Per_Unit return Pos;
46 pragma Import (C, Get_Bits_Per_Unit, "get_target_bits_per_unit");
48 function Get_Bits_Per_Word return Pos;
49 pragma Import (C, Get_Bits_Per_Word, "get_target_bits_per_word");
51 function Get_Char_Size return Pos; -- Standard.Character'Size
52 pragma Import (C, Get_Char_Size, "get_target_char_size");
54 function Get_Wchar_T_Size return Pos; -- Interfaces.C.wchar_t'Size
55 pragma Import (C, Get_Wchar_T_Size, "get_target_wchar_t_size");
57 function Get_Short_Size return Pos; -- Standard.Short_Integer'Size
58 pragma Import (C, Get_Short_Size, "get_target_short_size");
60 function Get_Int_Size return Pos; -- Standard.Integer'Size
61 pragma Import (C, Get_Int_Size, "get_target_int_size");
63 function Get_Long_Size return Pos; -- Standard.Long_Integer'Size
64 pragma Import (C, Get_Long_Size, "get_target_long_size");
66 function Get_Long_Long_Size return Pos; -- Standard.Long_Long_Integer'Size
67 pragma Import (C, Get_Long_Long_Size, "get_target_long_long_size");
69 function Get_Float_Size return Pos; -- Standard.Float'Size
70 pragma Import (C, Get_Float_Size, "get_target_float_size");
72 function Get_Double_Size return Pos; -- Standard.Long_Float'Size
73 pragma Import (C, Get_Double_Size, "get_target_double_size");
75 function Get_Long_Double_Size return Pos; -- Standard.Long_Long_Float'Size
76 pragma Import (C, Get_Long_Double_Size, "get_target_long_double_size");
78 function Get_Pointer_Size return Pos; -- System.Address'Size
79 pragma Import (C, Get_Pointer_Size, "get_target_pointer_size");
81 function Get_Maximum_Alignment return Pos;
82 pragma Import (C, Get_Maximum_Alignment, "get_target_maximum_alignment");
84 function Get_No_Dollar_In_Label return Boolean;
85 pragma Import (C, Get_No_Dollar_In_Label, "get_target_no_dollar_in_label");
87 function Get_Float_Words_BE return Nat;
88 pragma Import (C, Get_Float_Words_BE, "get_float_words_be");
90 function Get_Words_BE return Nat;
91 pragma Import (C, Get_Words_BE, "get_words_be");
93 function Get_Bytes_BE return Nat;
94 pragma Import (C, Get_Bytes_BE, "get_bytes_be");
96 function Get_Bits_BE return Nat;
97 pragma Import (C, Get_Bits_BE, "get_bits_be");
99 function Get_Strict_Alignment return Nat;
100 pragma Import (C, Get_Strict_Alignment, "get_strict_alignment");
102 function Width_From_Size (Size : Pos) return Pos;
103 function Digits_From_Size (Size : Pos) return Pos;
104 -- Calculate values for 'Width or 'Digits from 'Size
106 end Get_Targ;