From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8083 invoked from network); 26 Apr 2021 18:02:56 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 26 Apr 2021 18:02:56 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 2D9479C882; Tue, 27 Apr 2021 04:02:52 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 7F3DC9C835; Tue, 27 Apr 2021 04:02:21 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 775A69C835; Tue, 27 Apr 2021 04:02:16 +1000 (AEST) Received: from oclsc.com (oclsc.com [206.248.137.164]) by minnie.tuhs.org (Postfix) with SMTP id 61E699BFDB for ; Tue, 27 Apr 2021 04:02:15 +1000 (AEST) Received: by lignose.oclsc.org (Postfix, from userid 1000) id D39DA640CB6; Mon, 26 Apr 2021 14:00:51 -0400 (EDT) To: tuhs@tuhs.org Message-Id: <20210426180051.D39DA640CB6@lignose.oclsc.org> Date: Mon, 26 Apr 2021 14:00:51 -0400 (EDT) From: norman@oclsc.org (Norman Wilson) Subject: Re: [TUHS] pcc in 8th edition X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Adam Thornton: I sat in on an undergrad course from [Dave Hanson] my first year of grad school (94-95) and he taught it with lcc. I asked `why not gcc' and he said, `gcc is 100,000 lines and I don't know what 90% of them are doing; lcc is 10,000'. === My copy is indeed about 10K lines, not counting the code-generator modules. Those are C files generated by a utility program lburg from a template file. The three architectures supplied in the distribution, for MIPS, SPARC, and X86, have template files of about 900, 1200, and 700 lines respectively. The template file for the VAX is about 2800 lines, but includes some metalanguage of my own, interpreted by an awk script, to generate extra rules for all the direct-store type-to-type instructions. The C output from lburg for the other architectures is 5000-6000 lines; for the VAX, after expansion by my awk program and then by lburg, is nearly 20K. Did someone say Complex Instruction Set? Norman Wilson Toronto ON