Jasmin/JVM Data Types

TYPES

There are 10 JVM/Jasmin primitive data types:

   I.......... int (32 bits)
   J.......... long (64 bits)
   F.......... float (32 bits)
   D.......... double (64 bits)
   B.......... byte (8 bits)
   S.......... short (16 bits)
   C.......... char (16 bits)
   Z.......... boolean
   a.......... reference (32 bits)
   V.......... void

In addition, there are three composite types:

   [X......... X[] (array of X)
   LY;........ class Y
   (X)Y....... X->Y (method with domain = X and range = Y)

Note

Sub-word types: byte, short, and char are second class types. While Jasmin programmers can load and store these types, Jasmin doesn't support arithmetic and logic on these types because it's more efficient to work with 32 bit quantities.

Also, boolean is a virtual type standing for the 32 bit ints 0 (false) and 1 (true).