Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!hc!lanl!jlg
From: jlg@lanl.gov (Jim Giles)
Newsgroups: comp.lang.c
Subject: Re: Array indexing vs. pointers...
Message-ID: <3760@lanl.gov>
Date: 20 Sep 88 00:13:05 GMT
References: <33488@xait.CCA.COM>
Organization: Los Alamos National Laboratory
Lines: 19

From article <33488@xait.CCA.COM>, by g-rh@xait.CCA.COM (Richard Harter):
> A smart compiler will take the first instance and generate something like
> 
> 	tmp = a;
> 	for (i=0;i 	  tmp1 = *tmp++;
> 	  same code referring to tmp1
> 	  }

A smarter compiler will generate code more like this:

        ttt=a+n
        for (tmp=a; tmp