Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Speeding up sum of squares
Date: Thu, 8 May 2008 15:30:55 +0000 (UTC)
Organization: Boeing
Lines: 21
Message-ID: <fvv6bf$4ga$1@fred.mathworks.com>
References: <fm012450tjat7jgv5hqhtiokid3ketdsgj@4ax.com> <fvq0qr$7tv$1@fred.mathworks.com> <1v2124dbkuukhhprui7a8ss4vhmtgn3jcg@4ax.com> <fvq421$p13$1@fred.mathworks.com> <fvtkg4$foh$1@fred.mathworks.com> <fvtllj$n9b$1@fred.mathworks.com> <fvtvo2$n92$1@fred.mathworks.com> <fvu0m3$hjm$1@fred.mathworks.com> <fvupsb$4fo$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210260655 4618 172.30.248.37 (8 May 2008 15:30:55 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 8 May 2008 15:30:55 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 756104
Xref: news.mathworks.com comp.soft-sys.matlab:467419



"Tim Davis" <davis@cise.ufl.edu> wrote in message
<fvupsb$4fo$1@fred.mathworks.com>...
> 
> Don't forget that when you're timing things you need to run
> the code at least twice; the first time, the code itself
> gets loaded into memory.
> 

Yes, I did that. I posted typical times after several runs.

> gcc is smart enough not to need "register" statements.  It
> ignores them.  Visual C++ is probably not as smart.

Good point. I should have worded it better. The "register"
keyword doesn't actually force the compiler to do anything
special ... it is just a compiler request. For instance, the
built in lcc ignores it and gives the same result with or
without the register keyword.

James Tursa