What is the license for programs compiled with GCC?

If a programming language compiler is released under the GPL, such as GCC, does that mean that the programs written and compiled by it must be under the GPL?

I mean, when we use GCC or another GPL-licensed compilation system, should the software that uses them also be GPL-licensed?

+3


source to share


1 answer


The GPL handles this explicitly. It only covers work derived from the original work covered by the GPL by copying or modifying the GPL licensed code. Program output is explicitly excluded from the terms of the GPL.

Since the binary code compiled with GCC is output from GCC, it is not covered by the GPL other than referencing parts of GCC or including code in your program that you copied from the GCC source.



You can read the entire GPL here.

+3


source







All Articles