comparison gcc/ada/libgnat/s-parame.ads @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
4 -- -- 4 -- --
5 -- S Y S T E M . P A R A M E T E R S -- 5 -- S Y S T E M . P A R A M E T E R S --
6 -- -- 6 -- --
7 -- S p e c -- 7 -- S p e c --
8 -- -- 8 -- --
9 -- Copyright (C) 1992-2017, Free Software Foundation, Inc. -- 9 -- Copyright (C) 1992-2018, Free Software Foundation, Inc. --
10 -- -- 10 -- --
11 -- GNAT is free software; you can redistribute it and/or modify it under -- 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- -- 12 -- terms of the GNU General Public License as published by the Free Soft- --
13 -- ware Foundation; either version 3, or (at your option) any later ver- -- 13 -- ware Foundation; either version 3, or (at your option) any later ver- --
14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- -- 14 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
53 53
54 --------------------------------------- 54 ---------------------------------------
55 -- Task And Stack Allocation Control -- 55 -- Task And Stack Allocation Control --
56 --------------------------------------- 56 ---------------------------------------
57 57
58 type Task_Storage_Size is new Integer; 58 type Size_Type is range
59 -- Type used in tasking units for task storage size 59 -(2 ** (Integer'(Standard'Address_Size) - 1)) ..
60 60 +(2 ** (Integer'(Standard'Address_Size) - 1)) - 1;
61 type Size_Type is new Task_Storage_Size; 61 -- Type used to provide task stack sizes to the runtime. Sized to permit
62 -- Type used to provide task storage size to runtime 62 -- stack sizes of up to half the total addressable memory space. This may
63 -- seem excessively large (even for 32-bit systems), however there are many
64 -- instances of users requiring large stack sizes (for example string
65 -- processing).
63 66
64 Unspecified_Size : constant Size_Type := Size_Type'First; 67 Unspecified_Size : constant Size_Type := Size_Type'First;
65 -- Value used to indicate that no size type is set 68 -- Value used to indicate that no size type is set
66 69
67 function Default_Stack_Size return Size_Type; 70 function Default_Stack_Size return Size_Type;
90 -- proper implementation of the stack overflow check. 93 -- proper implementation of the stack overflow check.
91 94
92 Runtime_Default_Sec_Stack_Size : constant Size_Type := 10 * 1024; 95 Runtime_Default_Sec_Stack_Size : constant Size_Type := 10 * 1024;
93 -- The run-time chosen default size for secondary stacks that may be 96 -- The run-time chosen default size for secondary stacks that may be
94 -- overriden by the user with the use of binder -D switch. 97 -- overriden by the user with the use of binder -D switch.
95
96 function Default_Sec_Stack_Size return Size_Type;
97 -- The default initial size for secondary stacks that reflects any user
98 -- specified default via the binder -D switch.
99 98
100 Sec_Stack_Dynamic : constant Boolean := True; 99 Sec_Stack_Dynamic : constant Boolean := True;
101 -- Indicates if secondary stacks can grow and shrink at run-time. If False, 100 -- Indicates if secondary stacks can grow and shrink at run-time. If False,
102 -- the size of a secondary stack is fixed at the point of its creation. 101 -- the size of a secondary stack is fixed at the point of its creation.
103 102