Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Most important aspect of any compiler (C or otherwise) Date: Sat, 08 Oct 2016 14:49:47 -0700 Organization: None to speak of Lines: 22 Message-ID: References: <20aae408-4b77-483a-bb84-d05f5240f415@googlegroups.com> <58beb6dc-d034-4c8d-90bb-80fa26ece2f2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="27819"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/DNahBIsfb5oFZCnKJCynx" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:0D1QGawu+d8xXG+UjxD7a65t6E8= sha1:uTpyBhKPCGFgML+6T/z9v/HPiao= Xref: csiph.com comp.lang.c:94625 James Kuyper writes: [...] > I've sometimes considered the idea of writing a fully conforming but > completely useless implementation of C, primarily for making the point > that the requirements for full conformance are a lot weaker than many > people think (including some of the people who had a role in creating > those requirements). > Creating a useless implementation would be a lot simpler than writing a > useful implementation, but (because #error directives have to be handled > correctly) it requires correctly implementing all of translation phases > 1-4, which is sufficiently complicated to make the project interesting. I've thought about doing the same thing. You don't need to implement phases 1-4 -- just re-use an existing preprocessor. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"