2 ms·
GCC has a license exception specifically to allow compiling programs with it without "infecting" the resulting output with the compiler's GPL. https://www.gnu.o
by yorwba 7y ago
GCC has a license exception specifically to allow compiling programs with it without "infecting" the resulting output with the compiler's GPL. https://www.gnu.org/licenses/gcc-exception-3.1-faq.html https://www.gnu.org/licenses/gcc-exception-3.1-faq.html
- jcranmer 7y agoThat's more to deal with the fact that compilers insert calls to various support routines to implement certain functionality--for example, there are division routines to support architectures without a division operator. It's not currently understood that the result of compiling code implies a claim to copyright or derivative works of any resulting compiler output, which is GP's point. Actually, there's an argument that, even if GCC and its support libraries did not have the compiler exception clause, then there still would be no GPL "infection" of compiled code. License to use a software program implicitly carries with it a right to make any necessary copies that are functionally required, even if the copies would otherwise be infringing. So the compiler inserting copies of itself into your program would enable you to distribute those copies with your program without any further agreement (i.e., licenses) required, so long as you had legitimate license to the compiler itself.