-
language translate
There are 4 phases for a Program to finally get translated into an executable file viz:
- Preprocessing : It expands the code (For example - expansion of macros, removal of comments and conditional compilation)
- Compilation : Translates the code into assembly language, which an assembler can understand
- Assembly : Assembler translates the code into machine code or byte code
- Linking : It links various modules of the code, i.e. the function calls and finally delivers the executable
-
Compiler VS. Interpreter
Compiler : Scans the entire program and translates it as a whole into machine code. It continues translating the program until the first error is met, in which case it stops. Hence debugging is easy. For example Java.
Interpreter : Translates program one statement at a time and does not generate Object Code. It gives error only after scanning the entire program. For example Python.
-
GUN
GUN, recursive acronym for “GUN’s Not Unix”, is a Unix-like operating system and free software under General Public License(GPL). It is intended to develop and share software for free, for all its users.
-
GCC
GCC(GNU Compiler Collection) is a compiler system produced by the GNU Project under General Puublic License, supports various programming languages.
Earlier it was named GNU C Compiler as it only supported C programming language. GCC can compile both C and C++ files(for example
.c/.cppfiles).It provides various options, for example:
- -o Option (to specify the output name for the executable)
- -wall Option(to enable warnings)
理解g++、GCC、GDB、GNU以及各种后缀
最新推荐文章于 2026-07-05 07:31:23 发布


1248

被折叠的 条评论
为什么被折叠?



