Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


 JVMInstructions.thy   Interaktion und
PortierbarkeitIsabelle

 
(*  Title:      HOL/MicroJava/JVM/JVMInstructions.thy
    Author:     Gerwin Klein, Technische Universitaet Muenchen
*)


section \<open>Instructions of the JVM\<close>


theory JVMInstructions imports JVMState begin


datatype 
  instr = Load nat                  \<comment> \<open>load from local variable\<close>
        | Store nat                 \<comment> \<open>store into local variable\<close>
        | LitPush val               \<comment> \<open>push a literal (constant)\<close>
        | New cname                 \<comment> \<open>create object\<close>
        | Getfield vname cname      \<comment> \<open>Fetch field from object\<close>
        | Putfield vname cname      \<comment> \<open>Set field in object\<close>
        | Checkcast cname           \<comment> \<open>Check whether object is of given type\<close>
        | Invoke cname mname "(ty list)"  \<comment> \<open>inv. instance meth of an object\<close>
        | Return                    \<comment> \<open>return from method\<close>
        | Pop                       \<comment> \<open>pop top element from opstack\<close>
        | Dup                       \<comment> \<open>duplicate top element of opstack\<close>
        | Dup_x1                    \<comment> \<open>duplicate top element and push 2 down\<close>
        | Dup_x2                    \<comment> \<open>duplicate top element and push 3 down\<close>
        | Swap                      \<comment> \<open>swap top and next to top element\<close>
        | IAdd                      \<comment> \<open>integer addition\<close>
        | Goto int                  \<comment> \<open>goto relative address\<close>
        | Ifcmpeq int               \<comment> \<open>branch if int/ref comparison succeeds\<close>
        | Throw                     \<comment> \<open>throw top of stack as exception\<close>

type_synonym
  bytecode = "instr list"
type_synonym
  exception_entry = "p_count \ p_count \ p_count \ cname"
                  \<comment> \<open>start-pc, end-pc, handler-pc, exception type\<close>
type_synonym
  exception_table = "exception_entry list"
type_synonym
  jvm_method = "nat \ nat \ bytecode \ exception_table"
   \<comment> \<open>max stacksize, size of register set, instruction sequence, handler table\<close>
type_synonym
  jvm_prog = "jvm_method prog" 

end

99%


¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.16Angebot  ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge
 




Quellcodebibliothek  | Gedichte  | Musik  | Bilder  | Normaldarstellung  | © 2026 JDD |