Home > Article > Backend Development > What is the compiler of golang?
#GCC is a powerful compiler that can not only compile C/C that we are familiar with, but also compile languages such as Fortran, Pascal, and Objective-C. device.
And GCC GO is GCC specially used to compile the Golang language. (Recommended learning: go)
GC, the full name is Golang Compiler, is the official compiler of Go language and comes with it. Usually the go build we use, etc., is GC.
Comparison results that most people agree with:
GC is the native compiler of the Go language and does not need to be installed, just use it; while GCC GO needs to be installed by yourself.
GC compilation speed is faster than GCCGO.
GC only supports some mainstream processors, such as x86, amd, ARM, etc. GCC GO supports basically all processors.
The programs compiled by GCC GO run more efficiently because GCCGO has more powerful code optimization capabilities than GC.
GCC GO compiled code can be better used with GDB.
GCC GO has lag and cannot support compiling all Golang versions. Please pay attention to this when using it.
GCC GO can generate good execution code, but it lacks escape detection and will lose some performance in the allocation and recycling of many small memories.
GC is not implemented rigorously and has poor support for 32-bit systems. Code compiled without using GCCGO on the ARM chip architecture is unreliable.
The above is the detailed content of What is the compiler of golang?. For more information, please follow other related articles on the PHP Chinese website!