Package mini_c

Class Memory


  • public class Memory
    extends java.lang.Object
    Un modèle mémoire minimal pour RTLinterp
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static int word_size
      ici toutes les valeurs sont des entiers 64 bits représentées par le type long de Java
    • Constructor Summary

      Constructors 
      Constructor Description
      Memory()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) long get​(long ptr, int ofs)  
      (package private) long malloc​(int n)
      alloue n octets
      (package private) void set​(long ptr, int ofs, long v)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • word_size

        static final int word_size
        ici toutes les valeurs sont des entiers 64 bits représentées par le type long de Java
        See Also:
        Constant Field Values
    • Constructor Detail

      • Memory

        Memory()
    • Method Detail

      • malloc

        long malloc​(int n)
        alloue n octets
      • get

        long get​(long ptr,
                 int ofs)
      • set

        void set​(long ptr,
                 int ofs,
                 long v)