avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] What is '__AVR_HAVE_MUL__'?


From: Anatoly Sokolov
Subject: Re: [avr-libc-dev] What is '__AVR_HAVE_MUL__'?
Date: Tue, 30 Jan 2007 19:42:55 +0300

As Joerg Wunsch wrote:

> As Dmitry K. wrote:
>
>> What is the necessity of occurrence __AVR_HAVE_MUL__
>> in common/macros.inc? Is it not the same as
>> __AVR_ENHANCED__?
>
> Anatoly recently introduced two new AVR categories into GCC: avr25 and
> avr35.  They should be though of as avr2.5 and avr3.5: while they
> share almost everything with avr2 and avr3 respectively, they add the
> MOVW instruction.  This is e.g. the case for all recent ATtinys: they
> do have MOVW but they don't feature a hardwar multiplier.

New ATtiny devices also have LPM Rx, Z+ instruction.  When I added avr25 
architecture in GCC, I have introduced two gcc macros  __AVR_HAVE_MOVW__
and __AVR_HAVE_LPMX__. Now I have added __AVR_HAVE_MUL__ macro
in GCC for avr4 and avr5 architectures.


Anatoly.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]