Thanks for example.
I think I either made a mistake with a library layout or with a library
philosopy.
So, the thing is:
when you're using and arch with HW multiplier on board, gcc (linker actually)
links a library (msp2/libgcc.a) with HW mult routines only. You disabled HW
multiplier. So, there is no proper routine in library.
I'll fix this immediatelly.
You'll have to rebuild gcc.
If you do not want to do that, link the assembly code below:
(attention! this is not an ordinar routine and cannot be called from users
code)
---------------------------------
.global __mulsi3
.func __mulsi3
__mulsi3:
clr r14
clr r15
jmp .L__mulsi3st
.L__mulsi3loop:
clrc
rrc r13 ; b >>= 1
rrc r12
jnc +4 ;
add r10, r14 ; res = res + a
addc r11, r15
rla r10
rlc r11 ; a <<= 1
.L__mulsi3st:
tst r12 ; if b ne 0 goto L__mulsi3loop
jne .L__mulsi3loop
tst r13
jne .L__mulsi3loop
ret
.endfunc
---------------------------------
cheers,
~d
On Wednesday 03 December 2003 00:43, Brinda Ganesh wrote:
> I am attaching the file with the code.
> I use the following command to compile
> msp430-gcc -mmcu=msp430x449 -mdisable-hwmul -g test.c
>
> Thanks
> Brinda
>
> -- Dmitry <[email protected]> wrote: > code snippet?
>
> > will be fixed immediately.
> > but I think it's been fixed a while ago.
> > ~d
> >
> > On Tuesday 02 December 2003 20:12, Brinda Ganesh
> >
> > wrote:
> > > Hi
> > >
> > > I am attempting to compile uCOS/II using the
> > > msp430-gcc. I am using gcc 3.2 and the latest
> >
> > release
> >
> > > version of libc. I compile with the options
> > > --mmcu=msp430x449 mdisable-hwmul.
> > >
> > > I get the following error message on compilation
>
> /home/brinda/msp430/lib/gcc-lib/msp430/3.2/msp2/libgcc.a(_umulhisi3.o):
> > > In function `__umulhisi3':
> > > _umulhisi3.o(.text.libgcc+0x2): undefined
> >
> > reference to
> >
> > > `__mulsi3'
> > >
> > > Can someone tell me how I can fix this please?
> > >
> > > Thanks
> > > Brinda
>
> ________________________________________________________________________
>
> > > Download Yahoo! Messenger now for a chance to win
> >
> > Live At Knebworth DVDs
> >
> > > http://www.yahoo.co.uk/robbiewilliams
>
> -------------------------------------------------------
>
> > > This SF.net email is sponsored by OSDN's Audience
> >
> > Survey.
> >
> > > Help shape OSDN's sites and tell us what you
> >
> > think. Take this
> >
> > > five minute survey and you could win a $250 Gift
> >
> > Certificate.
> >
> > http://www.wrgsurveys.com/2003/osdntech03.php?site=8
> >
> > > _______________________________________________
> > > Mspgcc-users mailing list
> > > [email protected]
>
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
> > --
>
> /*****************************************************************
>
> > ("`-''-/").___..--''"`-._ (\ Dimmy the
> > Wild UA1ACZ
> > `6_ 6 ) `-. ( ).`-.__.`) State
> > Polytechnical Univ.
> > (_Y_.)' ._ ) `._ `. ``-..-'
> > Radio-Physics Departament
> > _..`--'_..-_/ /--'_.' ,' Saint
> > Petersburg, Russia
> > (il),-'' (li),' ((!.-' +7 (812)
> > 5403923, 5585314
>
> *****************************************************************/
>
>
>
>
> -------------------------------------------------------
>
> > This SF.net email is sponsored by OSDN's Audience
> > Survey.
> > Help shape OSDN's sites and tell us what you think.
> > Take this
> > five minute survey and you could win a $250 Gift
> > Certificate.
> > http://www.wrgsurveys.com/2003/osdntech03.php?site=8
> >
> > _______________________________________________
> > Mspgcc-users mailing list
> > [email protected]
>
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
> ________________________________________________________________________
> Download Yahoo! Messenger now for a chance to win Live At Knebworth DVDs
> http://www.yahoo.co.uk/robbiewilliams
--
/*****************************************************************
("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ
`6_ 6 ) `-. ( ).`-.__.`) State Polytechnical Univ.
(_Y_.)' ._ ) `._ `. ``-..-' Radio-Physics Departament
_..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia
(il),-'' (li),' ((!.-' +7 (812) 5403923, 5585314
*****************************************************************/