This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Optimizations and bad code
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: Re: [ECOS] Optimizations and bad code
- From: rob dot wj dot jansen at philips dot com
- Date: Tue, 24 Jul 2001 10:06:45 +0200
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