Code Generation

Beschreibung

Karteikarten am Code Generation, erstellt von Alexandros Parpas am 06/01/2015.
Alexandros Parpas
Karteikarten von Alexandros Parpas, aktualisiert more than 1 year ago
Alexandros Parpas
Erstellt von Alexandros Parpas vor fast 11 Jahre
10
1

Zusammenfassung der Ressource

Frage Antworten
What does a simple stack machine consist of? Main Memory Program Counter Current Instruction Register Stack pointer Temporary Register
A typical assembly language program.
What are the advantages of stack machines? They are simple compilers -> code generation for stack machines is much simpler than for register machines. (no register allocation is needed) Compact object code. This is because machine commands have no, or only one argument, unlike instructions for register machines. Simple CPUS -> cheap, easy to manufacture
What is linking? When symbolic names of the code to be generated are mapped to real machine addresses.
What happens when a program is invoked? The OS allocates space for the program The OS loads the program into the allocated Space Linking The OS jumps to the entry point of the program.
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

Stages of Compilation
Roshan KC