answersLogoWhite

0

How to design a Compiler?

Updated: 11/8/2022
User Avatar

Wiki User

12y ago

Best Answer

This is a fairly complex answer, but it basically boils down to a few oversimplified steps.

First, design a language, or find the specifications for a language you would like to use.

Second, design a lexical parser that can interpret the "tokens" that you designed in your language.

Third, design a compiler/linker that will assemble the tokens into binary code, and link them with the appropriate libraries.

Your exact steps will vary depending on the operating system you are using, the compiler you have available, etc.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How to design a Compiler?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the difference between a compiler design and a compiler?

In Compiler there is no design word ,whereas in compiler design there is design word


When was Principles of Compiler Design created?

Principles of Compiler Design was created in 1977.


Which is the best book for compiler design?

Ulman


What is booting in compiler design?

bootstrapping is a process of writing a compiler in the target programing language which it is intended to compile


Who was the first design the compiler?

No one knows and no one cares.


What is grammar in compiler design?

Is a specification for the syntax of a programming language.


Automata and compiler design solved papers?

how to correct fa


Cs1352- Principles of compiler design book download?

yes


What is identifier in compiler design programs?

identifier is a letter , digit.


What is finite Automata-compiler design?

single possible output for a given input


What are the principals for Compiler design?

Principles of Compiler Design was a textbook released in 1977 that is generally considered a classic in the field of computer programming. It is often called the "Dragon Book" because of the depiction of a knight slaying a dragon on the front cover.


Why can't java compiler initialize local variables?

Its not that the compiler can't initialize local variables; its that the compiler does not initialize local variables.This is by design and language specification. If you want to initialize local variables, you must explicitly do so.