License for code which generates code

Alex Hudson home at
Thu Jul 17 15:49:17 UTC 2008

edA-qa mort-ora-y wrote:
> I would like that the main code be GPL, but I also want that anybody can
> do whatever they want with the generated code (much as how free
> compilers tend to work).
> How do I go about doing this split licensing?

You'd probably want to add a special exception to the GPL to cover the 
output of your program.

GNU gcc, flex, bison, etc. are all programs which do something similar - 
you could look at how they handle it.



More information about the Discussion mailing list