|
This part of the guide contains detailed descriptions of the
BUSH built-in packages.
4.6 System Package
The BUSH System package provides information about the computer a script
is running on, including the numeric precision limits, size of the basic memory
units, amount of free memory and more.
GCC Ada equivalent: System
-
System.System_Name - name of the system...string "SYSTEM_NAME_BUSH"
-
System.Min_Int - smallest integer
-
System.Max_Int - largest integer
-
System.Max_Binary_Modulus - maximum size for a modular type (if
power of 2
-
System.Max_Nonbinary_Modulus - maximum size for a modular type (if
not power of 2)
-
System.Max_Base_Digits - maximum decimal precision for a range
-
System.Max_Digits - largest number of digits allowed for a floating-point
number
-
System.Max_Mantissa - largest number of binary digits allowed for
a fixed-point number
-
System.Fine_Delta - smallest delta allowed for a fixed-point number
-
System.Tick - basic clock period in seconds
-
System.Storage_Unit - number of bits per unit of storage (e.g. 8
bits)
-
System.Word_Size - size of a word in bits (e.g. 32)
-
System.Memory_Size - number of available storage units (e.g. 4 Gig
of virtual memory)
-
System.Default_Bit_Order - the "endianness" of your computer (eg.
HIGH_ORDER_FIRST)
-
System.Login_Shell - (boolean) true if this is a login shell (AdaScript
extension)
-
System.Restricted_Shell - (boolean) true if this is a restricted
shell (AdaScript extension)
BUSH is case-sensitve. "system.system_name" is not the same as "System.System_Name".
=> ? System.Memory_Size
4294967296
Back to Top
|