[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] gcc and g++ mbuff confusion. __attribute__((packed))
On Mon, 17 Apr 2000, Dipl.-Ing. O.Petzold wrote:
Hi.
: > typedef unsigned char Bool;
: > ....
[...]
:
: So the best way is the way how did you suggested. Anyway is there a performance
: factor to use unsigned char versus unsigned int ? I believe to remember that
: one should use basic types (int and double) on performance programs ? Any
: experience? I compiled the kernel program (written in C) with -align-double etc.
The perfomance difference not so significant, rewriting critical paths in
asm is more effective usually. It should be noted that using
-malign-double option can lead to different struct fields aligning, even
in the same app.
:
:
Rus