> -----Original Message-----
> From: avr-gcc-list-bounces+eric.weddington=atmel....@nongnu.org
> [mailto:avr-gcc-list-bounces+eric.weddington=atmel....@nongnu.org] On
> Behalf Of David Brown
> Sent: Friday, January 13, 2012 10:48 AM
> To: avr-gcc-list@nongnu.org
> Subject: Re: [avr-gcc-list] AVR Libc int32_t and uint32_t
> typedefsareincorrect
> 

> 
> Here is an idea to try out - instead of using "unsigned char" and
> "signed char" as your basis for 8-bit data, try using C++ classes
around
> them with arithmetic operators defined.  In many cases, you can get
more
> efficient code since there are no promotions for C++ classes.
> 
> It was a while back that I tried this, and although some code was
> smaller and faster than using normal uint8_t, other code was much
worse.
>   But it would be fun to try again.

Interesting approach!

It might be nice to work up a kind of "test suite" with those C++
classes to be able to compare the codegen of many kinds of operations
with the C compiler output.

_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to