-
+ 829AA035034216A965A6FDB18CC9039D873575B8F4CB592178928A830EE2F35AE58210349277ECEA5ECF70D1BA615F61F3443322FB7E650C5EA39954288358AC
zfp/adainclude/system.ads
(0 . 0)(1 . 135)
824 ------------------------------------------------------------------------------
825 ------------------------------------------------------------------------------
826 -- You do not have, nor can you ever acquire the right to use, copy or --
827 -- distribute this software ; Should you use this software for any purpose, --
828 -- or copy and distribute it to anyone or in any manner, you are breaking --
829 -- the laws of whatever soi-disant jurisdiction, and you promise to --
830 -- continue doing so for the indefinite future. In any case, please --
831 -- always : read and understand any software ; verify any PGP signatures --
832 -- that you use - for any purpose. --
833 -- --
834 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
835 ------------------------------------------------------------------------------
836 ------------------------------------------------------------------------------
837
838 package System is
839 pragma Pure;
840 -- Note that we take advantage of the implementation permission to make
841 -- this unit Pure instead of Preelaborable; see RM 13.7.1(15). In Ada
842 -- 2005, this is Pure in any case (AI-362).
843
844 pragma No_Elaboration_Code_All;
845 -- Allow the use of that restriction in units that WITH this unit
846
847 type Name is (SYSTEM_NAME_GNAT);
848 System_Name : constant Name := SYSTEM_NAME_GNAT;
849
850 -- System-Dependent Named Numbers
851
852 Min_Int : constant := Long_Long_Integer'First;
853 Max_Int : constant := Long_Long_Integer'Last;
854
855 Max_Binary_Modulus : constant := 2 ** Long_Long_Integer'Size;
856 Max_Nonbinary_Modulus : constant := 2 ** Integer'Size - 1;
857
858 Max_Base_Digits : constant := Long_Long_Float'Digits;
859 Max_Digits : constant := Long_Long_Float'Digits;
860
861 Max_Mantissa : constant := 63;
862 Fine_Delta : constant := 2.0 ** (-Max_Mantissa);
863
864 Tick : constant := 0.000_001;
865
866 -- Storage-related Declarations
867
868 type Address is private;
869 pragma Preelaborable_Initialization (Address);
870 Null_Address : constant Address;
871
872 Storage_Unit : constant := 8;
873 Word_Size : constant := Standard'Word_Size;
874 Memory_Size : constant := 2 ** Word_Size;
875
876 -- Address comparison
877
878 function "<" (Left, Right : Address) return Boolean;
879 function "<=" (Left, Right : Address) return Boolean;
880 function ">" (Left, Right : Address) return Boolean;
881 function ">=" (Left, Right : Address) return Boolean;
882 function "=" (Left, Right : Address) return Boolean;
883
884 pragma Import (Intrinsic, "<");
885 pragma Import (Intrinsic, "<=");
886 pragma Import (Intrinsic, ">");
887 pragma Import (Intrinsic, ">=");
888 pragma Import (Intrinsic, "=");
889
890 -- Other System-Dependent Declarations
891
892 type Bit_Order is (High_Order_First, Low_Order_First);
893 Default_Bit_Order : constant Bit_Order := Low_Order_First;
894 pragma Warnings (Off, Default_Bit_Order); -- kill constant condition warning
895
896 -- Priority-related Declarations (RM D.1)
897
898 -- 0 .. 98 corresponds to the system priority range 1 .. 99.
899 --
900 -- If the scheduling policy is SCHED_FIFO or SCHED_RR the runtime makes use
901 -- of the entire range provided by the system.
902 --
903 -- If the scheduling policy is SCHED_OTHER the only valid system priority
904 -- is 1 and other values are simply ignored.
905
906 Max_Priority : constant Positive := 97;
907 Max_Interrupt_Priority : constant Positive := 98;
908
909 subtype Any_Priority is Integer range 0 .. 98;
910 subtype Priority is Any_Priority range 0 .. 97;
911 subtype Interrupt_Priority is Any_Priority range 98 .. 98;
912
913 Default_Priority : constant Priority := 48;
914
915 private
916
917 type Address is mod Memory_Size;
918 Null_Address : constant Address := 0;
919
920 --------------------------------------
921 -- System Implementation Parameters --
922 --------------------------------------
923
924 -- These parameters provide information about the target that is used
925 -- by the compiler. They are in the private part of System, where they
926 -- can be accessed using the special circuitry in the Targparm unit
927 -- whose source should be consulted for more detailed descriptions
928 -- of the individual switch values.
929
930 Backend_Divide_Checks : constant Boolean := False;
931 Backend_Overflow_Checks : constant Boolean := True;
932 Command_Line_Args : constant Boolean := False;
933 Configurable_Run_Time : constant Boolean := True;
934 Denorm : constant Boolean := True;
935 Duration_32_Bits : constant Boolean := False;
936 Exit_Status_Supported : constant Boolean := True;
937 Fractional_Fixed_Ops : constant Boolean := False;
938 Frontend_Layout : constant Boolean := False;
939 Machine_Overflows : constant Boolean := False;
940 Machine_Rounds : constant Boolean := True;
941 Preallocated_Stacks : constant Boolean := False;
942 Signed_Zeros : constant Boolean := True;
943 Stack_Check_Default : constant Boolean := False;
944 Stack_Check_Probes : constant Boolean := True;
945 Stack_Check_Limits : constant Boolean := False;
946 Support_Aggregates : constant Boolean := True;
947 Support_Atomic_Primitives : constant Boolean := True;
948 Support_Composite_Assign : constant Boolean := True;
949 Support_Composite_Compare : constant Boolean := True;
950 Support_Long_Shifts : constant Boolean := True;
951 Always_Compatible_Rep : constant Boolean := False;
952 Suppress_Standard_Library : constant Boolean := True;
953 Use_Ada_Main_Program_Name : constant Boolean := False;
954 Frontend_Exceptions : constant Boolean := False;
955 ZCX_By_Default : constant Boolean := True;
956 Run_Time_Name : constant String := "FFA Run Time";
957
958 end System;