LWN.net Logo

Red Hat and the GPL

Red Hat and the GPL

Posted Mar 9, 2011 14:00 UTC (Wed) by samth (subscriber, #1290)
In reply to: Red Hat and the GPL by branden
Parent article: Red Hat and the GPL

This is pretty badly wrong with regard to the definition of compilation. In the world of C compilers, the term compilation is often used to mean the transformation of the output of the C preprocessor into assembly, but this is far from universal. In general, cpp, gas, and gcc are all compilers. It's easy to see this by considering compilers for other languages with macro systems, such as Common Lisp, where the "compiler" includes macro expansion, and also the term "JIT compiler", which usually refers to the transformation of a low-level bytecode directly into a binary instruction stream.

If you look up the Dragon book, you'll see that they write "a compiler is a program that reads a program written in one language -- the source language -- and translates it into an equivalent program in another language -- the target language". This fits cpp and gas just as it does gcc.


(Log in to post comments)

Red Hat and the GPL

Posted Mar 9, 2011 20:36 UTC (Wed) by branden (subscriber, #7029) [Link]

So you're telling me I'm wrong by reiterating my own assertion that the definition of the term is contextual and scope-dependent?

You might as well just call me names, man--it would save time.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds