Ada Programming/Libraries/Standard/AppletMagic

From Wikibooks, open books for an open world
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

AppletMagic is targeting the Java Virtual Machine and uses word sizes of the JVM, i.e. up to 64 bits. This includes a mapping to short and long IEEE floating point types.

As with other compilers there is no actual package Standard, the information is provided in system packages. The System_Name is Jcode. Some definitions are

   Min_Int               : constant :=-2**63;
   Max_Int               : constant := 2**63 - 1;

   Max_Binary_Modulus    : constant := 2**64;
   Max_Nonbinary_Modulus : constant := 2**63 - 1;

   Max_Base_Digits       : constant := 15;
   Max_Digits            : constant := 15;

See also

[edit | edit source]

Wikibook

[edit | edit source]