This is the mail archive of the gcc-patches@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: [wwwdocs] Add beginners project


Gerald Pfeifer <gerald@pfeifer.com> writes:

> On Thu, 10 Jun 2004, Steven Bosscher wrote:
> > This adds a project to use predicates where possible, as discussed
> > last month on gcc@.  OK?
> 
> Looks fine, with small adjustments.
> 
> > Index: projects/beginner.html
> > ===================================================================
> > + <li>Use predicates for RTL objects more
> 
> This might be a Germanism/Dutchism (but then it might be okay); we could
> avoid this doubt by rewriting this as "Increase use of predicates for...",
> or wait for a native speaker. :-)

 Why not make it absolute?  I.e. "<li>Use predicates for RTL objects."

 
> > + <p>GCC has simple predicates to see if a given <code>rtx</code> is of some
> > + specific class.  These predicates simply look at the <code>rtx_code</code>
> > + of the given RTL object and return nonzero if the predicate is true.  For
> > + For example, if an <code>rtx</code> represents a register, then      ^^^^
>     ^^^
> Extra "For".
> 
> > + <p>Unfortunately, lots of code in the middle end and in the backends does
>                                                ^^^                 ^^^
> 
> > + not use these predicates and instead compare the <code>rtx_code</code>
> > + in place: <code>(GET_CODE (rtx) == REG)</code>.  Find all the places where
> > + such comparisons can be replaced with a predicate.  Also, for many common
> > + comparisons there is no predicate yet.  See which ones are worth having
> > + a predicate for, and add them.  For a few examples, have a look at <a
> > + href="http://gcc.gnu.org/ml/gcc/2004-05/msg00447.html";>this</a> message
> > + in the mailing list archives.</p>
> 
> at <a href="...">this description by ...</a>.
> 
> (We should not use "here" and "this" for HTML links.)
> 
> Gerald
> -- 
> Gerald Pfeifer (Jerry)   gerald@pfeifer.com   http://www.pfeifer.com/gerald/
> 


-- 
Thanks,
Jim

http://www.student.cs.uwaterloo.ca/~ja2morri/
http://phython.blogspot.com
http://open.nit.ca/wiki/?page=jim


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