What is the difference between make and gcc?

前端 未结 11 1428
小鲜肉
小鲜肉 2021-01-31 02:39

The last sentence in the article caught my eye

[F]or C/C++ developers and students interested in learning to program in C/C++ rather than users of L

11条回答
  •  青春惊慌失措
    2021-01-31 03:15

    gcc is a compiler like javac. You give it source files, it gives you a program.

    make is a build tool. It takes a file that describes how to build the files in your project based on dependencies between files, so when you change one source file, you don't have to rebuild everything (like if you used a build script). make usually uses gcc to actually compile source files.

提交回复
热议问题