🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.help
Article #61

Re: [Altivec Newbie] optimizing current code?

#61
From: Darrin Cardani
Date: Fri, 19 Jan 2001 14:48
32 lines
2782 bytes
In article
<Pine.SGI.4.30.0101171735050.41019-100000@helix2.caltech.edu>, Ian
Ollmann <iano@cco.caltech.edu> wrote:

> On Wed, 17 Jan 2001, Darrin Cardani wrote:
> 
> > Personally, I try to keep things to one AltiVec instruction per line.
> > It helps me optimize later, but there's no reason you have to do it
> > that way.
> 
> CodeWarrior does a reasonable job at scheduling if you write in C, so I am
> curious how keeping things one per line helps you optimize.

It helps me (not the compiler) understand what's going on better. I'm
better able to see all the instructions, and on a few occasions, I've
noticed that I could eliminate an instruction or replace a couple of
instructions with fewer instructions. I didn't mean to imply that the
compiler does anything different. Sorry if that's what it sounded like.

And yes, CodeWarrior does do a good job of scheduling. Or maybe, I just
do a bad job of it since I haven't read much about it. :-) Although, I
found on a few projects that CW's scheduling by itself made the code
slower, but with optimizations turned up all the way made it better.
So, as always, profile to be sure.

Darrin

-- 
Darrin Cardani
Buena Software, Inc. - Macintosh Video, Graphics and Audio Contract Development
http://www.buena.com/
dcardani@buena.com
Technical Details
Message-ID: <190120010848263240%dcardani@buena.spamfree.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!cyclone-pass-sjo.usenetserver.com!e420r-atl2.usenetserver.com.POSTED!dcardani
References: <943r3l$hn2$1@nnrp1.deja.com> <170120011731277716%dcardani@buena.spamfree.com> <Pine.SGI.4.30.0101171735050.41019-100000@helix2.caltech.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 101ec9,a6671d8e4f3ed02f
X-Google-Attributes: gid101ec9,public
X-Google-Thread: 10bcce,a6671d8e4f3ed02f
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,a6671d8e4f3ed02f
X-Google-Attributes: gidf635e,public
X-Google-ArrivalTime: 2001-01-19 06:48:27 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out.usenetserver.com!cyclone-pass-sjo.usenetserver.com!e420r-atl2.usenetserver.com.POSTED!dcardani
Subject: Re: [Altivec Newbie] optimizing current code?
From: Darrin Cardani <dcardani@buena.spamfree.com>
Newsgroups: comp.sys.mac.programmer.help,comp.sys.mac.programmer.codewarrior,codewarrior.mac
Message-ID: <190120010848263240%dcardani@buena.spamfree.com>
References: <943r3l$hn2$1@nnrp1.deja.com> <170120011731277716%dcardani@buena.spamfree.com> <Pine.SGI.4.30.0101171735050.41019-100000@helix2.caltech.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 8bit
User-Agent: YA-NewsWatcher/5.0.1
Lines: 32
X-Complaints-To: abuse@usenetserver.com
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly.
NNTP-Posting-Date: Fri, 19 Jan 2001 09:47:46 EST
Organization: WebUseNet Corp  http://www.usenetserver.com - Home of the fastest NNTP servers on the Net.
Date: Fri, 19 Jan 2001 08:48:26 -0600