Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can the compiler I made still be called a compiler?

The compiler I'm making works by generating C code which later on will be compiled again to an executable file by another compiler (default is tcc).

Is this still a compiler?

like image 719
Malma Avatar asked Dec 29 '21 05:12

Malma


People also ask

Why compiler is known as compiler?

The name "compiler" is primarily used for programs that translate source code from a high-level programming language to a lower level language (e.g. assembly language, object code, or machine code) to create an executable program.

What is called a compiler?

A compiler is a special program that translates a programming language's source code into machine code, bytecode or another programming language. The source code is typically written in a high-level, human-readable language such as Java or C++.

Can we make your own compiler?

It's totally OK to write a compiler in Python or Ruby or whatever language is easy for you. Use simple algorithms you understand well. The first version does not have to be fast, or efficient, or feature-complete. It only needs to be correct enough and easy to modify.

How is a compiler made?

A very simple compiler can be written from an assembler and machine code. Once you have a software that is able to translate something into binary instructions, you can use the original compiler to write a more sophisticated one (then use a second further refined one to write a third and so on).


Video Answer


1 Answers

Well it can be called a compiler. A compiler is a program that translates computer code written in one programming language (the source language) into another language (the target language). So your program could be classified as a compiler.

like image 100
AlexanterParker Avatar answered Oct 18 '22 19:10

AlexanterParker