delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/04/07/06:02:52

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Bob W" <dontsend AT operamail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Sequence points, any?
Date: 7 Apr 2006 02:46:07 -0700
Organization: http://groups.google.com
Lines: 17
Message-ID: <1144403167.636925.192100@i39g2000cwa.googlegroups.com>
References: <1144238453 DOT 674596 DOT 302360 AT z34g2000cwc DOT googlegroups DOT com>
<200604051406 DOT k35E6iOx002313 AT envy DOT delorie DOT com>
<1144285170 DOT 583086 DOT 24610 AT v46g2000cwv DOT googlegroups DOT com>
<v1v832h6p1p2bn51mjva71bkg6aui4in9n AT 4ax DOT com>
<49k31sFovesfU3 AT news DOT dfncis DOT de>
<sofa3296m70vcfeo93regapfuis5qutsao AT 4ax DOT com>
<1144358167 DOT 549081 DOT 289870 AT z34g2000cwc DOT googlegroups DOT com>
<msnb32lq8plrc62ip1vnon6bdum4g8jt7m AT 4ax DOT com>
NNTP-Posting-Host: 84.102.38.245
Mime-Version: 1.0
X-Trace: posting.google.com 1144403172 18098 127.0.0.1 (7 Apr 2006 09:46:12 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Fri, 7 Apr 2006 09:46:12 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: i39g2000cwa.googlegroups.com; posting-host=84.102.38.245;
posting-account=CXf2IQ0AAADhHwR4LIBYSPHMQKV3cPd3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Brian Inglis wrote:
>
> The compiler should support the timing of non-trivial functions even
> (or especially) in optimized code.
>


Besides being highly recursive Ack() is trivial:
No access to externals, globals, etc. It even
would not exist as a function in compiled code
if it was not recursive.

If I make it less trivial (e.g. by inserting an
external function such as putchar), gcc changes its
behaviour. At least that is what I think to remember
while testing various program versions.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019