This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

Re: Optimizations and bad code



Hi,

I completely agree with Gary,

> This code is simply frightening!!

so the example I made obviously was not typed in exactly like this, this was the
simple version of the macro infested source code I started off with.
The a[i++] was part of a macro (like getc() is a macro in a number of stdio.h files)
where it fetches a byte from a buffer.

Well, they warned me about this kind of stuff with macros ...
That's why I'm so glad that insure++ is available for Linux ;-)

Regards,

     Rob Jansen

Software Engineer
Competence Center Platforms
BU Mobile Communications
Meijhorst 60-10, 6537 KT Nijmegen, The Netherlands
Tel: +31-24-353-6329
Fax: +31-24-353-3613
mailto:Rob.WJ.Jansen@philips.com




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