From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,8be18979db11f51c X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,fb631c9316319fef X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-03-01 15:12:08 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!feeder1.proxad.net!opentransit.net!news.tele.dk!195.158.233.21!news1.ebone.net!news.ebone.net!newsfeed2.news.nl.uu.net!sun4nl!not-for-mail Message-ID: <3A9ED724.3D2CC671@infopuls.com> Date: Thu, 01 Mar 2001 23:11:32 +0000 From: Christof Brass Organization: InfoPuls X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.0.36 i586) X-Accept-Language: de MIME-Version: 1.0 Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: Drop C/C++ better sooner than later References: <97egck$vc6$3@info.cs.uofs.edu> <3A9AEFCD.AFC8431@infopuls.com> <97etsu$j41$1@pyrite.mv.net> <3A9B023A.CBD414A5@infopuls.com> <3A9C2B88.8032D829@infopuls.com> <97j1jq$g00$1@info.cs.uofs.edu> <3A9D5D59.F09FC122@videotron.ca> <97lk6a$1p33$2@info.cs.uofs.edu> <97m1v4$l0g@dispatch.concentric.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cache-Post-Path: fuchs.cyberlink.ch!unknown@193.247.146.165 X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) NNTP-Posting-Host: 193.246.253.18 X-Trace: 983488257 news.ch.uu.net 182 193.246.253.18 Xref: supernews.google.com comp.os.vms:20788 comp.sys.dec:2984 Rick Cadruvi wrote: > > I'm not sure what the point is with size of compilers. > Most of the size of the code for a compiler isn't necessarily > related to the complexity of the language. Compilers use tables > for parsing/lexical analysis. The tricky part of compilers and > what tends to add size is the code optimizations. > > The more a language does checking of syntax and constructs, > the more it relies on data it gets from the sources/includes > (hidden or otherwise). > > Compiler size has very little if anything to do with complexity > of the language. Run-time support may. The best thing to look at > would be image size for similar tasks having the runtime support > linked in without using shareable images. Better yet, keep the > task to something done without using libraries and see how much > extra stuff the compiler throws in the final image. > > Rick... > > "Robert Deininger" wrote in message > news:rdeininger-0103011208040001@user-2ive7nq.dialup.mindspring.com... > > In article , > > Jan Vorbrueggen wrote: > > > > > bill@triangle.cs.uofs.edu (Bill Gunshannon) writes: > > > > > > > I would be more likely to mistrustt he Ada compiler based > > > > solely on the several orders of magnitude more complex it is. > > > > > > Is somebody willing and able to post a DIR/SIZE of ADA.EXE, DECC.EXE and > > > DECXX.EXE? > > > > > > ADA.EXE;1 19590/19593 > > ACS.EXE;1 4072/4077 > > > > CXX$COMPILER.EXE;3 16805/16857 > > CXX$DEMANGLE.EXE;4 30/144 > > CXX$LINK.EXE;3 87/144 > > > > DECC$COMPILER.EXE;1 > > 12517/12528 > > > > FORT$MAIN.EXE;1 9126/9126 > > > > F90$MAIN.EXE;1 14025/14031 > > > > All somewhat out of date... > > > > ACS> show ver > > DEC Ada V3.4-2 with the Professional Development Option > > > > $ cxx/ver > > Compaq C++ V6.2-035 for OpenVMS Alpha V7.1-2 > > > > $ cc/ver > > DEC C V5.7-004 on OpenVMS Alpha V7.1-2 > > > > DIGITAL Fortran 77 X7.1-156-337CG > > > > DIGITAL Fortran 90 X7.1-574-337CG > > > > In particular, I'm pretty sure that C++ has grown significatly since this > > one was current. > > > > > > By this measure, "orders of magnitude" doesn't look realistic. > > > > -- > > Robert Deininger > > rdeininger@mindspring.com The complexity of a PL can be at different places. Syntax can be complex, i.e. not very regular which leads to complexer and bigger scanning/parsing routines. The semantics of constructs can be complex this adds to the complexity and size of the high level code generation. High level optimisation is complexer if the language offers more powerful constructs. Complexity of the PL contributes substantially to the size of the compiler. But one effect wasn't taken into account so far: if the compiler is written in its language the quality/attributes of the language have a double effect on the compiler: the more powerful the language is the more elegant the compiler can be constructed, and by that limiting the effect on increasing the compiler size. The better the language is in terms of safety and architectural quality the better the compiler will be. This double effect is one main reason why C and C++ compilers are pieces of shit.