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


Groups > comp.lang.c > #26707

Re: Swapping logic

NNTP-Posting-Date Wed, 26 Sep 2012 00:46:26 -0500
From Gareth Owen <gwowen@gmail.com>
Newsgroups comp.lang.c
Subject Re: Swapping logic
References <49f36538-d5ca-411c-bc58-1f17b55911b6@s8g2000vbc.googlegroups.com> <k3ndov$832$1@dont-email.me> <k3njsc$gjs$1@dont-email.me> <slrn3vfsk65443.b0j.andrews@sdf.lonestar.org>
Date Wed, 26 Sep 2012 06:46:26 +0100
Message-ID <87ehlpnxot.fsf@gmail.com> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Cancel-Lock sha1:zGjt81yVpEa7U8GNIugu2qUESr4=
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Lines 15
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-Aqxpn+0rO96agAyNSZSkDsebFhqxeir5Eokx6TfhSMdviXKMLSMK6E4sjHWce3xsl5FO3nLWEu9MPyB!TmwOLzcrDEBJwTIJ9q1fQH1uebVuIEc1dDXASEO3Ec9FO8yidakl8YbEg7u94x9hfTCK
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 1829
Path csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
Xref csiph.com comp.lang.c:26707

Show key headers only | View raw


Andrew Smallshaw <andrews@sdf.lonestar.org> writes:

> Which is of course complete nonsense.  It's the kind of thing that
> happens when somone's _opinion_ that is implictly based on one
> specific use case gets treated as undisputable and universal fact.
> The smallest system I've ever used C on had 53 bytes of RAM.  You try
> making the argument that the correct solution is _always_ a temporary
> variable in that kind of environment.

The argument isn't that the temporary is the best (object code)
solution, the argument is that a "good enough" compiler will optimise
the C-code-with-temporary into optimal object code.

The problem is that the "good enough compiler", like the "True
Scotsman", is frequently a mythical beast.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Swapping logic ZUBAIR TRALI <bhat.zubair789@gmail.com> - 2012-09-23 05:48 -0700
  Re: Swapping logic Richard Damon <news.x.richarddamon@xoxy.net> - 2012-09-23 09:04 -0400
  Re: Swapping logic Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-09-23 09:15 -0400
    Re: Swapping logic Noob <root@127.0.0.1> - 2012-09-24 12:56 +0200
  Re: Swapping logic Casey Carter <Casey_at_Carter_dot_net@dontspam.me.invalid> - 2012-09-23 11:35 -0500
    Re: Swapping logic Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-09-23 14:19 -0400
      Re: Swapping logic Nobody <nobody@nowhere.com> - 2012-09-24 10:57 +0100
      Re: Swapping logic Andrew Smallshaw <andrews@sdf.lonestar.org> - 2012-09-26 05:20 +0000
        Re: Swapping logic Gareth Owen <gwowen@gmail.com> - 2012-09-26 06:46 +0100
          Re: Swapping logic David Brown <david@westcontrol.removethisbit.com> - 2012-09-26 08:16 +0200
            Re: Swapping logic Gareth Owen <gwowen@gmail.com> - 2012-09-26 17:51 +0100
  Re: Swapping logic Kaz Kylheku <kaz@kylheku.com> - 2012-09-23 18:19 +0000

csiph-web