X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.232.190 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: Sequence points, any? Organization: Systematic Software Message-ID: References: <1144238453 DOT 674596 DOT 302360 AT z34g2000cwc DOT googlegroups DOT com> <49i0u7Foq6jlU1 AT news DOT dfncis DOT de> <1144284045 DOT 083854 DOT 45700 AT i39g2000cwa DOT googlegroups DOT com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 39 Date: Thu, 06 Apr 2006 02:25:41 GMT NNTP-Posting-Host: 64.59.135.176 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7tw2no 1144290341 64.59.135.176 (Wed, 05 Apr 2006 20:25:41 MDT) NNTP-Posting-Date: Wed, 05 Apr 2006 20:25:41 MDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On 5 Apr 2006 17:40:45 -0700 in comp.os.msdos.djgpp, "Bob W" wrote: >Thank you very much for your post. That was >pretty good analysis, which was also good >enough to remove my remaining doubts about >the new way gcc is handling the kind of code >mentioned in this thread. > > >> > If gcc's out-of-sequence optimisation is prevented >> > by using one of the methods mentioned previously, >> > the program actually executes a touch faster. >> >> ... on the CPU you tried it on. Which may not be the one it was >> optimizing for. > >I presume that you are not referring to specific >submodel targets here (e.g. P3, P4, etc.). You >probably have meant to tell me that gcc's general >compile method gets tuned torwards hyperthreading >capable targets - and gcc sticks to its new way of >handling things regardless whether a "vintage target" >like the P3 is specified in the command line option >or not. > >Did I get this right? The model specific optimizations will control what types (if any) of scheduling are performed and instructions generated. Problems with rearranging calls like this may just be bugs due to recent changes (or fixes for other problems) in the compiler internals. -- Thanks. Take care, Brian Inglis Calgary, Alberta, Canada Brian DOT Inglis AT CSi DOT com (Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca) fake address use address above to reply