. Concrete can look at using the command man gcc optimization options: compiled with GCC C / C + + code, it will try to use the least time to complete the compilation and compiled code easier to debug. Easy to debug compiled code means that the source code has the same order of execution, the compiled code is not optimized. There are many option would be to tell GCc at compile time and expense of consuming more easily debug generated on the basis of smaller, faster executable file. The most typical of these options is the-O and-O2. -O option tells gcc basic optimization of the source code. -O2 option tells Gcc as small as possible and as quickly as possible code. There are some very special options can be man gcc look. Debugging and profiling options: GCC supports several types of debugging profiling option. Among these options is the most commonly-g and-pg.-g option tells gcc GNU debugger can be generated (such as gdb) to use debug information in order to debug the user program. Gcc-pg option tells the program the user to add additional code is executed, the analysis of information generated using gprof to display the time-consuming process conditions. 3,
youth fake oakley sunglasses, using gdb uses methods: Kin into the command line and press Enter to run gdb gdb,
$25 oakley sunglasses, and start gdb,
$25 oakley sunglasses, on the command line can develop a lot of options, you can also run the following way gdb: gdb filename with gdb run this way, they can directly specify the desired debug procedures. Health on the command line into gdb-h to get a description of the options on the gdb simple list. Compiled code for debugging, to make gdb work,
$25 oakley sunglasses, you must make the program compiled with debug information in the debugging information includes program type of each variable in the executable file in the address mapping as well as the source code line number. gdb use this information to make the source code and machine code associated with it. About gcc write so it's generally, more information can find help,
youth fake oakley sunglasses, remember to learn Linux is a major weapon man or info command,
$25 oakley sunglasses, the next time about using