Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #389162

Re: else ladders practice

From Tim Rentsch <tr.17687@z991.linuxsc.com>
Newsgroups comp.lang.c
Subject Re: else ladders practice
Date 2024-11-27 21:18 -0800
Organization A noiseless patient Spider
Message-ID <86mshkos1a.fsf@linuxsc.com> (permalink)
References (15 earlier) <vhje8l$2412p$1@dont-email.me> <86y117qhc8.fsf@linuxsc.com> <vi2m3o$2vspa$1@dont-email.me> <86cyiiqit8.fsf@linuxsc.com> <vi4iji$3f7a3$1@dont-email.me>

Show all headers | View raw


Bart <bc@freeuk.com> writes:

> On 26/11/2024 12:29, Tim Rentsch wrote:
>
>> Bart <bc@freeuk.com> writes:
>>
>>> On 25/11/2024 18:49, Tim Rentsch wrote:
>>>
>>>> Bart <bc@freeuk.com> writes:
>>>>
>>>>> It's funny how nobody seems to care about the speed of compilers
>>>>> (which can vary by 100:1), but for the generated programs, the 2:1
>>>>> speedup you might get by optimising it is vital!
>>>>
>>>> I think most people would rather take this path (these times
>>>> are actual measured times of a recently written program):
>>>>
>>>>       compile time:       1 second
>>>>       program run time:   ~7 hours
>>>>
>>>> than this path (extrapolated using the ratios mentioned above):
>>>>
>>>>       compile time:       0.01 second
>>>>       program run time:   ~14 hours
>>>
>>> I'm trying to think of some computationally intensive app that would
>>> run non-stop for several hours without interaction.
>>
>> The conclusion is the same whether the program run time
>> is 7 hours, 7 minutes, or 7 seconds.
>
> Funny you should mention 7 seconds.  If I'm working on single source
> file called sql.c for example, that's how long it takes for gcc to
> create an unoptimised executable:
>
>   c:\cx>tm gcc sql.c            #250Kloc file
>   TM:  7.38

Your example illustrates my point.  Even 250 thousand lines of
source takes only a few seconds to compile.  Only people nutty
enough to have single source files over 25,000 lines or so --
over 400 pages at 60 lines/page! -- are so obsessed about
compilation speed.  And of course you picked the farthest-most
outlier as your example, grossly misrepresenting any sort of
average or typical case.

Back to comp.lang.c | Previous | NextNext in thread | Find similar


Thread

Re: else ladders practice Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-11-27 21:18 -0800
  Re: else ladders practice Michael S <already5chosen@yahoo.com> - 2024-11-28 14:37 +0200
    Re: else ladders practice Bart <bc@freeuk.com> - 2024-11-28 15:25 +0000
      Re: else ladders practice Michael S <already5chosen@yahoo.com> - 2024-11-28 17:46 +0200
      Re: else ladders practice antispam@fricas.org (Waldek Hebisch) - 2024-12-01 13:04 +0000
        Re: else ladders practice Bart <bc@freeuk.com> - 2024-12-01 15:13 +0000
          Re: else ladders practice antispam@fricas.org (Waldek Hebisch) - 2024-12-06 23:30 +0000
            Re: else ladders practice Bart <bc@freeuk.com> - 2024-12-07 12:40 +0000
    Re: else ladders practice Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-11-29 21:25 -0800
      Re: else ladders practice Bart <bc@freeuk.com> - 2024-11-30 11:26 +0000
        Re: else ladders practice antispam@fricas.org (Waldek Hebisch) - 2024-12-01 13:19 +0000
        Re: else ladders practice Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-02 06:09 -0800
          Re: else ladders practice Bart <bc@freeuk.com> - 2024-12-02 14:44 +0000
            Re: else ladders practice Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-02 19:19 +0100
              Re: else ladders practice Bart <bc@freeuk.com> - 2024-12-02 18:48 +0000
                Re: else ladders practice Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-05 14:41 +0100
                Re: else ladders practice Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2024-12-05 15:51 -0800
                Re: else ladders practice Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-07 11:58 +0100
            Re: else ladders practice Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-05 16:24 -0800
  Re: else ladders practice Bart <bc@freeuk.com> - 2024-11-28 14:27 +0000
    Re: else ladders practice Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-11-28 18:28 +0100
      Re: else ladders practice Bart <bc@freeuk.com> - 2024-11-28 18:25 +0000
        Re: else ladders practice Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-11-29 10:36 +0100
        Re: else ladders practice Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-11-29 15:29 -0800
          Re: else ladders practice Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-11-30 03:46 +0100
            Re: else ladders practice Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-11-29 20:40 -0800
              Re: else ladders practice Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-11-30 11:00 +0100
                Re: else ladders practice Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-12-04 17:34 -0800
                Re: else ladders practice Janis Papanagnou <janis_papanagnou+ng@hotmail.com> - 2024-12-05 14:21 +0100
    Re: else ladders practice Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-11-29 21:03 -0800

csiph-web