Computer Science, asked by chandan6823, 1 year ago

what is used to convert python to low level language

Answers

Answered by diptishetty
0

1. You can write the compiler in any language but it bounds to some properties like performance, execution time, memory management etc.,

2. C & C++ would be the ideal for most cases because of its performance(Today most of modern os & languages use c as base). Even you could write compiler in assembly language & even binary too(if you can). (before 1980 people used to write the program in binary for performance & saving memory).Even today, you could find people editing binary files to correct their mistakes (in labs mostly) Like editing Hex files. Sometimes I do play with binary through bit shifting.

3. Ex, If you want to design a Language called X, You will have to design a compiler for X in c, c++ or assembly language. After finishing your language design & libraries, the time when you feel the language has gained the maturity, you can port the compiler into x language, X language's compiler written in X. (this is not the case always.)

Consider python, You can't say that Python is written in some programming language, since it as a language is just a set of rules (like syntax rules, or descriptions of standard functionality), so we might say that it is written in English (Design goal of the language)

However, mentioned rules can be implemented in some programming language, this is where the choice of language comes in. In this case it is C.

Please mark brainlist

Similar questions