This is the mail archive of the ecos-patches@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]
Other format: [Raw text]

Re: patch - at91 serial drivers assumed realtime response for DSR routines


Jani Monoses wrote:
> do these changes to const result in gcc optimizing better or why are
> they made?
> thanks
>
> Jani

Although it may in some cases actually improve the code generated, it
is mostly a question of programming style. By declaring an item to be
const you tell the compiler that you do not _intend_ to ever change it.
If you then do (by mistake), the compiler will detect it. This catches
some errors that would otherwise go unnoticed.

tk
--------------------------------------------------

Thomas Koeller, Software Development

Basler Vision Technologies
An der Strusbek 60-62
22926 Ahrensburg
Germany

Tel +49 (4102) 463-162
Fax +49 (4102) 463-239

mailto:thomas.koeller@baslerweb.com
http://www.baslerweb.com

==============================


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