-1
$\begingroup$

Could anyone tell me from where could I get the c compiler source code.In particular the lexical analyzer for c.I searched the web but no links show how a compiler is defined.

$\endgroup$

closed as off-topic by David Richerby, Raphael Sep 22 '14 at 13:27

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • $\begingroup$ This is not Google, and source code is not ontopic here as such. $\endgroup$ – Raphael Sep 22 '14 at 13:28
  • $\begingroup$ I notice that you have had multiple questions closed. Please familiarized yourself with our scope (e.g. via faq) and browse through some questions in order to find out which kind of questions we like. $\endgroup$ – Raphael Sep 22 '14 at 13:29
1
$\begingroup$

search the web: "c compiler" source

By the way, You can find source code for any free software or open-source software, and a licence allowing you to use it freely.

C being the implementation language for Unix, I would expect it to have been one of the first pieces of software with available source, and a copyleft licence.

When searching the web for the source code of a piece of sofware, look for these types of licences (without a licence you are not allowed to use the source code anyway). Creative Commons licences will generally do too, and non copylefted free licences such as BSD licences. All these terms are usually useful keywords to find software with source code available.

$\endgroup$
  • 1
    $\begingroup$ Please don't encourage posters of offtopic questions. $\endgroup$ – Raphael Sep 22 '14 at 13:27
  • $\begingroup$ @Raphael Sorry. The question looked so silly, I forgot it was off topic. That is for my first sentence. Then some old reflexes took over. Maybe it can be moved to a more appropriate place. Should I delete? $\endgroup$ – babou Sep 22 '14 at 18:38
  • $\begingroup$ Nah, it might be helpful to someone (until the whole question is deleted automatically). $\endgroup$ – Raphael Sep 22 '14 at 19:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.