100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Samenvatting

Summary The function of a compiler

Beoordeling
-
Verkocht
-
Pagina's
1
Geüpload op
04-08-2022
Geschreven in
2022/2023

This document describes the function of a compiler

Instelling
Vak








Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Vak

Documentinformatie

Geüpload op
4 augustus 2022
Aantal pagina's
1
Geschreven in
2022/2023
Type
Samenvatting

Onderwerpen

Voorbeeld van de inhoud

COMPILER SOURCE CODE = COMPILER = MACHINE CODE
. A compiler is a complex machine that bridges the gap between 1.LEXICAL ANALYSIS
human-readable code and computer readable code
. The compiler first divides the source code into TOKENS. It’s
. At low level computers can only a small number of things kind of like a compiler is figuring out what the words are in the
. They can read and write to memory, and they can do math with program.
numbers they are holding
2.SYNTACTIC ANALYSIS
. An executable program is the one generated by a compiler
. The tokens are organized into a hierarchical structure known as
. an executable program is also a list of instructions for the processor a PARSE TREE, which is like figuring out what the gramma is in
to follow, written in binary. the program
. The instructions like… read these bites from memory, jump forward
this many lines, jump back this many lines, but only if this flag is set
3.SEMENTIC ANALYSIS
. The compiler recovers context about the program, including
MACHINE CODE variable function names.
. The machine code is a program expressed in a list of binary . this is the stuff that the compiler needs to keep track of in
instructions. different parts of the program.
. It is also the kind of programing that your computer can read . In our case the only contact we need is the variable (X) and the
main function is not that important.
SOURSE CODE
. The final step is to reverse the parse tree and figure out some
. Source code is a version of a program that a human understands.
machine code that would effectively do the same thing as a
THE FUNCTION OF A COMPILER source code.
Typically the does not go straight from the parse tree to the machine code it first
The compiler’s job is to take the source find the tokens, parses, contextualizes, and generates


code which is Human-readable and turns it
into machine code which is computer-
readable
€8,05
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
ngxinjanaazille

Maak kennis met de verkoper

Seller avatar
ngxinjanaazille Durban University of Technology
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
0
Lid sinds
3 jaar
Aantal volgers
0
Documenten
3
Laatst verkocht
-

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen