[Klug-general] Obscure C at saturday's meeting

Kevin Groves kgroves at ksoft-electrical-projects.co.uk
Wed Dec 1 20:21:36 UTC 2010



On 01/12/10 14:12, Mike Evans wrote:
>>
>> OK I understand that in the scheduler you want good performance and
>> compact code to get the most out of it, but some things were never meant
>> to be written.
>>
> This may have been true once - but hasn't been so for a long time.  
> This is because an optimising compiler will produce the same or better 
> machine code from simply written, well structured and legible program 
> code.
>
That is true. Things have moved on quite a bit in helping coders.

> I remember (about 18 years ago) in a quick panic wanting to slow 
> something down and just added:
>
> for (i=0, i<1000, i++) /* do nothing */;
>
Oh yes I remember doing that years ago. :-)

Kev,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kgroves.vcf
Type: text/x-vcard
Size: 319 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/kent/attachments/20101201/9a81cfb5/attachment.vcf>


More information about the Kent mailing list