Please enable JavaScript.
Coggle requires JavaScript to display documents.
Implementation Technique :smiley: ((Things to Know, :pencil2: Tips for…
Implementation Technique :smiley:
Why?
To develop a compiler in a short amount of time
First Technique
Bootstrapping
Definition :speaking_head_in_silhouette:
The process of creating new compiler using program as input to itself
How it works? :thinking_face:
Create a compiler by giving source code to a compiler.
The compiler will then translate the code into preferable language.
Example
1) We want create a high level language entitled
CSC Machine.
2) We have the compiler called
ASSEMBLER.
3) We just code using :desktop_computer: language that we familiar such as
JAVA
4) and use
ASSEMBLER
to translate our codes :book: into
CSC Machine
language
JAVA
language :arrow_right:
ASSEMBLING
language :arrow_right:
CSC
Language
Things to Know
:pencil2: Tips for answer the question
Second Technique
Cross Compiling
High Level Language is
machine independent
:check:
Cross compiling is a method
reusing existing compiler
to create a new one
:check:
:
Identify compiler that we have
Identify compiler we write as input
Identify compiler that we want
:star:
:star:
:star: