> David,
> I thought I made all indecis computing via shifts/adds.
> Can you gimme an example when array/struct index being computed via
> multiplication?
>

No, this was just a general warning.  I haven't noticed anything other than
inline shift/adds for array indexing with msp430-gcc, but I presumed that if
hw multiplication would be the most efficient method of calculation, you
would use it (although that would probably imply an array of very large
structures of a very awkward size).  However, I've seen this sort of thing
before with other compilers - multiplies turn up in array calculations, so I
suggest caution when using the -mhwmul-no-int flag.

mvh.

David


> Cheers,
> ~d
>
>
> On Tuesday 14 January 2003 12:00, David Brown wrote:
> > faster.  Remember that other code, such as array index calculations,
could
> > use the hardware multiplier, so if you are using this flag it may make
> > sense to compile modules containing interrupt code with the flag
> > (-mdisable-hwmul) that disables the hardware multiplier entirely.
>
> --
> /********************************************************************
>      ("`-''-/").___..--''"`-._     (\   Dimmy the Wild      UA1ACZ
>       `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise Information Sys
>       (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky prospekt,   20 / 44
>     _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,   Russia
>    (il),-''  (li),'  ((!.-'             +7 (812)  3468202, 5585314
>  ********************************************************************/
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
> are you planning your Web Server Security? Click here to get a FREE
> Thawte SSL guide and find the answers to all your  SSL security issues.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
>



Reply via email to