[En-Nut-Discussion] Byte select macros
Ulrich Prinz
uprinz2 at netscape.net
Wed Nov 24 18:00:43 CET 2010
My opinion?
Add a separate header file for these macros -> Who wants them can use them.
As they are macros, they don't cost any memory if not used. In some cases they save memory if used. In other cases they don't harm.
These Macros will make cross development more easy, they rise compiler independency and in some cases give a better code readability.
So I'd like to see them in Nut/OS.
Best Regards
Ulrich
-----Original Message-----
From: Uwe Bonnes <bon at elektron.ikp.physik.tu-darmstadt.de>
To: ticso at cicely.de; Ethernut User Chat (English) <en-nut-discussion at egnite.de>
Sent: Wed, Nov 24, 2010 2:37 pm
Subject: Re: [En-Nut-Discussion] Byte select macros
Bernd> I didn't either - compiler optimization change from version to
Bernd> version, so it is some kind of Sisyphos work to tune for that and
Bernd> if you carefully count the conditions where it really cares you
Bernd> will quickly notice that it isn't worth in almost every case.
Providing some macros makes us independant from the grace of compiler
optimization ...
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
=
More information about the En-Nut-Discussion
mailing list