C language The long-term use of is near the end, and the plan also leaves part of Plan9 's Toolchain, written by C. In the long run, it's better to exclude all C from the code tree. This section speculates on how this will happen, but does not guarantee that the designation will occur or follow this pattern. The Run-time package (runtime). Most of the runtime packages are written in C, and the go compiler is implemented in C for some of the same reasons. However, the runtime package is much smaller than the compiler's code, and it is now written in a mix of go and c. When you convert C code to go code, one part of the conversion seems to be feasible. Among them, the main parts are: Scheduler (scheduler), garbage collection (the garbage collector), hash mapping table (hash map) implementation, and channel implementation. (The Go and C code mix well here, because it uses the C code of 6c instead of GCC to compile.) ) C compiler. plan 9 C compiler itself is written in C, if we want to remove all the C code from the Go package implementation, then we will remove these compilation tools: "Go tool 6c" and so on, in addition,. c files will not be supported in the directory of the Go package appears. We should declare such plans in advance so that third-party packages with C have time to remove the use of such C code. (Cgo, because GCC is used instead of 6c, it can still be used as a way to implement some of the functions in the go package using C. The Go1 compatibility document does not contain a description of the tool chain modification, which means that removing the C compiler is allowed. |
mouse drinking river translated 9 months ago 0 Human top top good translation! |