Features of GCC
- GCC is a portable complier -- it runs on most platforms(平臺) available today,and can produce output for many types of processors.In addition to the peocessors used in personal computers,it also supports microcontrollers(微處理器),DSPs and 64-bit CPUs.
- GCC is not only a native compiler -- it can also cross-compile(交叉編譯) any program,producing executable(可執(zhí)行的) files for a different system from the one used by GCC itself.This allows software to be compiles for embedded (嵌入的)systems which are not capable of running a compiler.GCC is written in C with a strong focus on portability,and can compile itself,so it can be adapted to new system easily.
- GCC has multiple(許多的) language frontends(前端),for parsing(剖析) different languages.Programs in each language can be compiled,or cross-compiled,for any architecture(架構(gòu)).For example,an ADA program can be compiled for a microcontroller,or a C program for a supercomputer.
- GCC has a modular(模塊的) design,allowing support for new languages and architectures to be added.Adding a new language front-end to GCC enables the use of that language on any architectures,provided that the necessary run-time facilities(工具)(such ad libraries)are available.Similarly,adding support for a new architecture makes it available to all languages.
- Most importantly,GCC is free software,distributed(分布的) under the GNU General Public License(GNU GPL).This means you have the freedom to use and to modify GCC,and with all GNU software.If you need support for a new type of CPU,a new language, or a new feature you can add it youself,or hire(雇傭) someone to enhance GCC for you.You can hire someone to fix a bug if it is important for you work.
- Furthermore,you have the freedom to share any enhancements you make to GCC.As a result of this freedom you can also make use of enhancements to GCC developed by others.The many features offered by GCC today show how this freedom to cooperate(合作) works to benefit you,and everyone else who uses GCC.
2020.9.30