Mercurial > hg > CbC > CbC_gcc
comparison gcc/ada/libgnat/s-parame__vxworks.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- -- |
51 | 51 |
52 --------------------------------------- | 52 --------------------------------------- |
53 -- Task And Stack Allocation Control -- | 53 -- Task And Stack Allocation Control -- |
54 --------------------------------------- | 54 --------------------------------------- |
55 | 55 |
56 type Task_Storage_Size is new Integer; | 56 type Size_Type is range |
57 -- Type used in tasking units for task storage size | 57 -(2 ** (Integer'(Standard'Address_Size) - 1)) .. |
58 | 58 +(2 ** (Integer'(Standard'Address_Size) - 1)) - 1; |
59 type Size_Type is new Task_Storage_Size; | 59 -- Type used to provide task stack sizes to the runtime. Sized to permit |
60 -- Type used to provide task storage size to runtime | 60 -- stack sizes of up to half the total addressable memory space. This may |
61 -- seem excessively large (even for 32-bit systems), however there are many | |
62 -- instances of users requiring large stack sizes (for example string | |
63 -- processing). | |
61 | 64 |
62 Unspecified_Size : constant Size_Type := Size_Type'First; | 65 Unspecified_Size : constant Size_Type := Size_Type'First; |
63 -- Value used to indicate that no size type is set | 66 -- Value used to indicate that no size type is set |
64 | 67 |
65 function Default_Stack_Size return Size_Type; | 68 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 |