EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Multiplier with IAR

Started by Micah Stevens February 10, 2005
Hi,

I think I already know the answer to this, but does IAR automatically use the 
multiplier if it's available when compiling or is that something that you 
have to code specifically all the time? 

I bet it doesn't, but I was just curious. 

-Micah 

Beginning Microcontrollers with the MSP430

You have to specify this in the project->options settings. It would also

'know' this from the micro selected.

Al

Micah Stevens wrote:

>Hi,
>
>I think I already know the answer to this, but does IAR automatically use
the 
>multiplier if it's available when compiling or is that something that
you 
>have to code specifically all the time? 
>
>I bet it doesn't, but I was just curious. 
>
>-Micah 
>
>
>.
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
>  
>


Sorry, just getting back to this, but I don't see any options relating to
this 
in particular, there are some optimizing options, but nothing relating 
specifically to the multiplier. Is this something that just starts happening 
once you crank up the optimizations on the compiler? 

I suppose I could look at the dissasembly and see.. 

-Micah 

On Thursday 10 February 2005 05:58 pm, Onestone wrote:
>  You have to specify this in the project->options settings. It would
also
>  'know' this from the micro selected.
>
>  Al
>
>  Micah Stevens wrote:
>  >Hi,
>  >
>  >I think I already know the answer to this, but does IAR automatically
use
>  > the multiplier if it's available when compiling or is that
something
>  > that you have to code specifically all the time?
>  >
>  >I bet it doesn't, but I was just curious.
>  >
>  >-Micah
>  >
>  >
>  >.
>  >
>  >
>  >.

I don't use C. When I start a project, under project-options-general
is 
an option to select for device with or without hardware multiplier. I 
don't know if the latest vesions of IAR have this, if not it must be 
automated.

Al

Micah Stevens wrote:

>Sorry, just getting back to this, but I don't
see any options relating to this 
>in particular, there are some optimizing options, but nothing relating 
>specifically to the multiplier. Is this something that just starts happening

>once you crank up the optimizations on the compiler? 
>
>I suppose I could look at the dissasembly and see.. 
>
>-Micah 
>
>On Thursday 10 February 2005 05:58 pm, Onestone wrote:
>  
>
>> You have to specify this in the project->options settings. It would
also
>> 'know' this from the micro selected.
>>
>> Al
>>
>> Micah Stevens wrote:
>> >Hi,
>> >
>> >I think I already know the answer to this, but does IAR
automatically use
>> > the multiplier if it's available when compiling or is that
something
>> > that you have to code specifically all the time?
>> >
>> >I bet it doesn't, but I was just curious.
>> >
>> >-Micah
>> >
>> >
>> >.
>> >
>> >
>> >.
>>    
>>
>
>
>.
>
> 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
>  
>



Hi Micah,

It looks like the support for the hardware multiplier in the IAR 
EW430 is not a compiler option, but more a linker option. The 
compiler calls a library function and has no idea about if multiply 
is done in hardware or software. It seems that you get the support 
for hardware multiplication automatically when you choose the device 
in the Embedded Workbench.

/Anders (not Lindgren;-)



--- In msp430@msp4..., Micah Stevens <micah@9...> wrote:
> 
> Sorry, just getting back to this, but I don't see any options 
relating to this 
> in particular, there are some optimizing options,
but nothing 
relating 
> specifically to the multiplier. Is this something
that just starts 
happening 
> once you crank up the optimizations on the
compiler? 
> 
> I suppose I could look at the dissasembly and see.. 
> 
> -Micah 
> 
> On Thursday 10 February 2005 05:58 pm, Onestone wrote:
> >  You have to specify this in the project->options settings. It 
would also
> >  'know' this from the micro
selected.
> >
> >  Al
> >
> >  Micah Stevens wrote:
> >  >Hi,
> >  >
> >  >I think I already know the answer to this, but does IAR 
automatically use
> >  > the multiplier if it's available
when compiling or is that 
something
> >  > that you have to code specifically all
the time?
> >  >
> >  >I bet it doesn't, but I was just curious.
> >  >
> >  >-Micah
> >  >
> >  >
> >  >.
> >  >
> >  >
> >  >Yahoo! Groups Links
> >  >
> >  >
> >  >
> >  >
> >  >
> >  >
> >  >
> >  >
> >  >
> >  >
> >
> >  .
> >
> >
> >
> >
> >
> >
> > 
> >
> >
> >
> >
> >
> >
> >  Yahoo! Groups Links
> >
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/msp430/
> > 
> > .
> > 
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service.







I understand, yes, that's there. I was looking for a optimizing option
that 
said something like 'Automatically use hardware multiplier'.. which
isn't 
there.

Thanks Al,
-Micah 

On Sunday 13 February 2005 04:17 pm, Onestone wrote:
>  I don't use C. When I start a project, under project-options-general
is
>  an option to select for device with or without hardware multiplier. I
>  don't know if the latest vesions of IAR have this, if not it must be
>  automated.
>
>  Al
>
>  Micah Stevens wrote:
>  >Sorry, just getting back to this, but I don't see any options
relating to
>  > this in particular, there are some optimizing options, but nothing
>  > relating specifically to the multiplier. Is this something that just
>  > starts happening once you crank up the optimizations on the compiler?
>  >
>  >I suppose I could look at the dissasembly and see..
>  >
>  >-Micah
>  >
>  >On Thursday 10 February 2005 05:58 pm, Onestone wrote:
>  >
>  >
>  >> You have to specify this in the project->options settings. It
would
>  >> also 'know' this from the micro selected.
>  >>
>  >> Al
>  >>
>  >> Micah Stevens wrote:
>  >> >Hi,
>  >> >
>  >> >I think I already know the answer to this, but does IAR
automatically
>  >> > use the multiplier if it's available when compiling or
is that
>  >> > something that you have to code specifically all the time?
>  >> >
>  >> >I bet it doesn't, but I was just curious.
>  >> >
>  >> >-Micah
>  >> >
>  >> >
>  >> >.
>  >> >
>  >> >
>  >> >.
>  >>
>  >
>  >.
>  >
>  >
>  >.

Ahh.. Thanks Anders! 

On Sunday 13 February 2005 04:25 pm, nuridor wrote:
>  Hi Micah,
>
>  It looks like the support for the hardware multiplier in the IAR
>  EW430 is not a compiler option, but more a linker option. The
>  compiler calls a library function and has no idea about if multiply
>  is done in hardware or software. It seems that you get the support
>  for hardware multiplication automatically when you choose the device
>  in the Embedded Workbench.
>
>  /Anders (not Lindgren;-)
>
>  --- In msp430@msp4..., Micah Stevens <micah@9...> wrote:
>  > Sorry, just getting back to this, but I don't see any options
>
>  relating to this
>
>  > in particular, there are some optimizing options, but nothing
>
>  relating
>
>  > specifically to the multiplier. Is this something that just starts
>
>  happening
>
>  > once you crank up the optimizations on the compiler?
>  >
>  > I suppose I could look at the dissasembly and see..
>  >
>  > -Micah
>  >
>  > On Thursday 10 February 2005 05:58 pm, Onestone wrote:
>  > > You have to specify this in the project->options settings.
It
>
>  would also
>
>  > > 'know' this from the micro selected.
>  > >
>  > > Al
>  > >
>  > > Micah Stevens wrote:
>  > > >Hi,
>  > > >
>  > > >I think I already know the answer to this, but does IAR
>
>  automatically use
>
>  > > > the multiplier if it's available when compiling or is
that
>
>  something
>
>  > > > that you have to code specifically all the time?
>  > > >
>  > > >I bet it doesn't, but I was just curious.
>  > > >
>  > > >-Micah
>  > > >
>  > > >
>  > > >.
>  > > >
>  > > >
>  > > >.


Memfault Beyond the Launch