From what i understand compilers are briefly what converts a user given source code into a
machine level code.
And what i understand is that this compiler is a program itself.And there should be a different
compiler for every programming language for every machine.
i have some questions here.mainly regarding compilers.
1>Since the hardware for every machine is diferent, a compiler then must
take into account the machine architecture.So how does a compiler do it?
Does the creator of the compiler manually tell the compiler about the hardware or does the
compiler itself interacts with the machine and figures out its H/W?
2>can i download copilers?
if so can i use 2 compilers for the same programming language in a machine?
3>how are compilers created?(and what kinds of programs are they?)just a basic overview please.
4>i am interested in the c language,i have heard that a lot of games are created using c/c++.
but then games use sound and graphics.What are library files that contain graphic functions?
5>can i update a compiler? is it possible to add extra functions to a library?How?
6> C is a middle level language since it has features of both a high level language and
low level languages.Does compilers work differently for different levels of abstraction
present in a language?what kind of language are used to create operating systems?
please help me out with these questions.
If possible,please answer as many questions as possible and refer to the numbering(of questions) so that
it becomes easy for me to understand.thanks.
machine level code.
And what i understand is that this compiler is a program itself.And there should be a different
compiler for every programming language for every machine.
i have some questions here.mainly regarding compilers.
1>Since the hardware for every machine is diferent, a compiler then must
take into account the machine architecture.So how does a compiler do it?
Does the creator of the compiler manually tell the compiler about the hardware or does the
compiler itself interacts with the machine and figures out its H/W?
2>can i download copilers?
if so can i use 2 compilers for the same programming language in a machine?
3>how are compilers created?(and what kinds of programs are they?)just a basic overview please.
4>i am interested in the c language,i have heard that a lot of games are created using c/c++.
but then games use sound and graphics.What are library files that contain graphic functions?
5>can i update a compiler? is it possible to add extra functions to a library?How?
6> C is a middle level language since it has features of both a high level language and
low level languages.Does compilers work differently for different levels of abstraction
present in a language?what kind of language are used to create operating systems?
please help me out with these questions.
If possible,please answer as many questions as possible and refer to the numbering(of questions) so that
it becomes easy for me to understand.thanks.
Last edited: