Re: Give some ideas for c Optimzation
- From: Netocrat <netocrat@xxxxxxxxxxx>
- Date: Fri, 08 Jul 2005 04:59:21 +1000
On Thu, 07 Jul 2005 17:12:27 +0000, CBFalconer wrote:
> Richard Bos wrote:
>> "chellappa" <N.Chellappa@xxxxxxxxx> wrote:
>>
>>> read this web site http://www.*********.com/qed/optimize.html
>>
>> Or, perhaps, do not. It's written by Paul Hsieh, whose opinions on what
>> is good C are... let's be generous and call them unusual in this group.
>
> What was the point in wiping out the URL and preventing readers from
> making their own evaluation? I have had my disagreements with Mr Hsieh,
> and his peculiarities that really stick in my mind are: 1. All ints are
> guaranteed 32 bits. 2. Shift operations on signed integral types are
> always valid.
On reading through some of Paul Hsieh's site I found it to be informative
and practical. I certainly didn't see any glaring errors. As far as shift
operations he specifically mentions on one page that right shift is not
defined by standard C for signed integers, so if he once argued the
opposite he has corrected the error. His ideas on optimisation with
assembly are great and needn't clash with this newsgroup's goal of
standard C - they can quite easily remain distinct. I should add the
caveat that I have only a rudimentary assembly knowledge so I couldn't
properly evaluate all of the examples for their 'unusualness' but there is
nothing unusual on the website in his C usage. On matters of personal
taste/style/programming religion I very much agree with his opinion on
goto usage and his suggestions on how to learn programming.
In short I don't see the point in censoring the URL - the site is a good
resource.
.
- References:
- Give some ideas for c Optimzation
- From: chellappa
- Re: Give some ideas for c Optimzation
- From: chellappa
- Re: Give some ideas for c Optimzation
- From: Richard Bos
- Re: Give some ideas for c Optimzation
- From: CBFalconer
- Give some ideas for c Optimzation
- Prev by Date: Re: case label does not reduce to an integer constant
- Next by Date: Clarify atol statment
- Previous by thread: Re: Give some ideas for c Optimzation
- Next by thread: Re: Give some ideas for c Optimzation
- Index(es):
Relevant Pages
|