From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,42147f5b2d81aa51 X-Google-Attributes: gid111c93,public From: Robert Harley Subject: Re: optimized (or optimizable) C programming? Date: 1999/10/05 Message-ID: #1/1 X-Deja-AN: 533076273 Content-Transfer-Encoding: 8bit References: <37F8AC50.13AA8F7D@ife.ee.ethz.ch> Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: usenet@inria.fr X-Trace: ites.inria.fr 939131260 9284 128.93.11.84 (5 Oct 1999 13:47:40 GMT) Organization: I.N.R.I.A Rocquencourt Mime-Version: 1.0 NNTP-Posting-Date: 5 Oct 1999 13:47:40 GMT Newsgroups: comp.os.linux.alpha Alex Rhomberg writes: > void test2 (double *fmat_lin, const double *x, const double *dhdX0_lin) If you know that fmat_lin doesn't overlap with the others you can mark it with __restrict in ccc and in the latest gcc. #if defined(__DECC) || defined(__GNUC__) && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ >= 95) #define RESTRICT __restrict #else #define RESTRICT #endif void test2 ( double * RESTRICT fmat_lin, const double *x, const double *dhdX0_lin ) { ...; } /* end function test2 */ Rob.