This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC Induction Variable Terminology


In message <Pine.LNX.4.44.0309092310010.1882-100000@nondot.org>, Chris Lattner 
writes:
 >
 >What exactly are a "basic" and "general" induction variables?  I see a lot
 >of references to them on the list and in the code, but not in any
 >literature that I've found.  Can someone point me to a description of what
 >they are? :)
A basic induction variable is a pseudo register which is set within
a loop only by incrementing or decrementing its value.

A general induction variable is a pseudo register with a value
which is a linear function of a basic induction variable.



Jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]