From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,97482af7429a6a62 X-Google-Attributes: gid109fba,public X-Google-Thread: 103376,97482af7429a6a62 X-Google-Attributes: gid103376,public X-Google-Thread: 10d15b,97482af7429a6a62 X-Google-Attributes: gid10d15b,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Language Efficiency Date: 1995/04/06 Message-ID: #1/1 X-Deja-AN: 100937921 references: <3lmt64$stt@dplanet.p2k.cbis.com> <3lrrqk$kbj@usenet.INS.CWRU.Edu> <1995Apr4.174002.9577@eisner.decus.org> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.c++,comp.lang.ada,comp.lang.cobol Date: 1995-04-06T00:00:00+00:00 List-Id: "Finally, let me note that the two specific examples given by Robert, "code space" and "execution time" are often at odds with each other, so a robust compiler will let the user indicate a preference." yes, people often say this, but in my experience it is much less true than people expect. The pragma Optimize (Space|Time) of Ada has very seldom had much effect. Most modern highly optimizing compilers do NOT in fact have a selection for time vs space. That's because in practice, reducing the number of instructions reduces the execution speed on modern RISC machines. Sure you can find examples, e.g. pulling things out of loops, where this is theoretically the case, but I still think that in practice, over a big chunk of code, there is not the kind of dichotomy that the quote above suggests.