Development Environment for Linux C Programs
1. Composition of the Development Environment
2. gcc compiler
Multi-platform compiler with powerful functions and superior performance. gcc can compile and connect the c and c ++ language source programs into executable files.
Files suffixed with. c and c source code files
A file suffixed with. h is the program's header
Files suffixed with. I are pre-processed C source code files.
A file suffixed with. o is the target file after compilation.
. S is a suffix file, which is the source code file of the assembly language.
Gcc compiler options
-O requires output of executable files
-C requires the compiler to output the target code without outputting executable files.
-G requires the compiler to output debugging information during compilation.
3. glibc
Is the main function library of C in linux.
Provides a C library for system calls and basic functions. It is used by all dynamic and connected programs.
4. glibc_header
If the system header file is missing, many C Programs that use system functions cannot be compiled.
View glibc version
Ls/lib -*
View gcc version
Gcc -- version