Compiler Design Viva Questions

How can I write a basic compiler to convert a static text into a machine readable file? The next step will be introducing variables into the compiler; imagine that we want to write a compiler which compile only some functions of a language. Introducing practical tutorials and resources is highly appreciated :-)

How to write a very basic compiler - Software Engineering Stack Exchange

Compiler Design Viva Questions 2

A "compiler" is any device that translates from one programming language to another. One of the nice things about having a C# compiler that turns C# into IL, and an IL compiler (the "jitter") that turns IL into machine code, is that you get to write the C# compiler to IL (easy!), and put the processor-specific optimizations in the jitter.

Compiler Design Viva Questions 3

How do I create my own programming language and a compiler for it

Compiler Design Viva Questions 4

A Java compiler produces code for the JVM. So the target machine of a compiler can be a virtual machine that is not executed directly by the hardware. The main difference between interpreter and compiler is that a compiler first checks and translates the whole source code into a target machine language. This compiled code is then executed by the machine it was meant for. On the other hand, an ...

Just wondering (now that I've started with C++ which needs a compiler) why Python doesn't need a compiler? I just enter the code, save it as an exec, and run it. In C++ I have to make builds and a...

9 I'm in my intro classes and trying to understand how a Java compiler works. Most posts said a compiler translates A to B (which could be machine code) to run, while an interpreter 'just' runs the code. How can the machine run code with just an interpreter, without producing or translating the code into machine code?