On Sun, Feb 18, 2018 at 9:23 AM, Compiler <erfangnuli...@gmail.com> wrote: > #Question > > What is the difference between using the following two files? > > /go/src/cmd/gc/go.y > /go/src/cmd/cc/cc.y > > ------------- > #Question > > What is the difference between using the following two files? > > /go/src/cmd/gc/lex.c > /go/src/cmd/cc/lex.c
You must be looking at a very old version of Go, as current versions of Go do not contain either file. Old versions of Go shipped with a C compiler that was used to build parts of the runtime that were written in C. Those parts were rewritten into Go, and Go no longer ships a C compiler. Back then, the Go compiler was in cmd/gc and the C compiler was in cmd/cc. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.