The first chapter outlines linux c language foundation
Virtual File System (VFS)
Interprocess communication mechanisms: pipes, message queues signal lights shared memory
Chapter vim and emacs
Two mainstream Editor: vim emacs
vi meaning visual visualization. vim = vi improve
Chapter III gcc compiler
Check whether the installed gcc
rpm -a gcc is not installed
Switch to the root install
yum install gcc ensure networking
Then the terminal, enter vim filename. Edit the following procedure
Return to the command line, perform the following procedure, you can use gcc compiler
gcc -v displays the version number
time + an executable file, may exhibit time program execution time, the CPU time, sys consumption of the system
gcc optimization
gcc optimization using -O1 -O2 -O3 three levels:
If the larger the number, the higher the level of optimization on behalf of, but not necessarily all the benefits of optimization:
There may delete your variables, it can lead to difficult to debug. Probably because of optimization increase compilation time. So far as possible with optimized where necessary.
gdb (gcc Debugger) debug tool gcc
Other compilers:
g++ EGCS calls indent gprof f2c和p2c
Reproduced in: https: //my.oschina.net/u/204616/blog/545408