--- "Garst R. Reese" <[email protected]> wrote:
> >Ok, I tried without forcing the hwmul but still, the wrong stream
> gets
> >generated. Here is the compile line:
> >=================================
> >msp430-gcc -g -mmcu=msp430x149 -v -c irap.c
> >Reading specs from
> >/cygdrive/d/mspgcc/bin/../lib/gcc-lib/msp430/3.2.3/specs
> >Configured with: ./configure --target=msp430
> >--prefix=/c/local/liechtic/daten/ms
> >pgcc/build/installed --disable-nls
> >Thread model: single
> >gcc version 3.2.3
> > /cygdrive/d/mspgcc/bin/../lib/gcc-lib/msp430/3.2.3/cc1.exe -lang-c
> -v
> >-iprefix
> >/cygdrive/d/mspgcc/bin/../lib/gcc-lib/msp430/3.2.3/ -D__GNUC__=3
> >-D__GNUC_MINOR_
> >_=2 -D__GNUC_PATCHLEVEL__=3 -D__GXX_ABI_VERSION=102 -DMSP430
> >-D__MSP430__ -D__MS
> >P430 -D__NO_INLINE__ -D__STDC_HOSTED__=1 -DMSP430_HAS_HW_MUL
> >-D__MSP430_149__ -D
> >MSP430_HAS_HWMUL -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int
> >-D__INT_MAX
> >__=32767 irap.c -quiet -dumpbase irap.c -mmcu=msp430x149 -g -version
> -o
> >/cygdriv
> >e/d/DOCUME~1/ANDRES~1/LOCALS~1/Temp/ccUeupmE.s
> >GNU CPP version 3.2.3 (cpplib) (GNU assembler syntax)
> >GNU C version 3.2.3 (msp430)
> > compiled by GNU C version 3.3.3 (cygwin special).
> >ignoring nonexistent directory
> "/cygdrive/d/mspgcc/msp430/sys-include"
> >ignoring nonexistent directory
> >"/c/local/liechtic/daten/mspgcc/build/installed/i
> >nclude"
> >ignoring nonexistent directory
> >"/c/local/liechtic/daten/mspgcc/build/installed/l
> >ib/gcc-lib/msp430/3.2.3/include"
> >ignoring nonexistent directory
> >"/c/local/liechtic/daten/mspgcc/build/installed/l
> >ib/gcc-lib/msp430/3.2.3/../../../../msp430/sys-include"
> >ignoring nonexistent directory
> >"/c/local/liechtic/daten/mspgcc/build/installed/l
> >ib/gcc-lib/msp430/3.2.3/../../../../msp430/include"
> >#include "..." search starts here:
> >#include <...> search starts here:
> > /cygdrive/d/mspgcc/lib/gcc-lib/msp430/3.2.3/include
> > /cygdrive/d/mspgcc/msp430/include
> >End of search list.
> >
>
>/cygdrive/d/mspgcc/bin/../lib/gcc-lib/msp430/3.2.3/../../../../msp430/bin/as.ex
> >e -o irap.o /cygdrive/d/DOCUME~1/ANDRES~1/LOCALS~1/Temp/ccUeupmE.s
> >msp430-gcc -g -m msp430x149 irap.o -o irap
> >===================================
> >Notice there are two of those "has hw mul":
> >MSP430_HAS_HW_MUL
> >MSP430_HAS_HWMUL
> >perhaps that is creating a problem somewhere?
> >
> >Andre
> >
> I saw that, but it looks intentional:
> /gcc/gcc-3.3/gcc/config/msp430
> msp430.h:%{mmcu=msp430x149:%(cpp_msp2) -D__MSP430_149__
> -DMSP430_HAS_HWMUL}
>
> msp430.h:#define CPP_MSP2_SPEC " -DMSP430_HAS_HW_MUL "
>
> I think the real gurus are going to have to step in.
> Sorry I could not be of more help.
> Garst
I appreciate your efforts so far and hopefully one of the gurus could
be so kind to try out the following simple code and see whether the
correct stream gets generated:
uint32_t a,b;
uint64_t c;
c = (uint64_t) a*b;
Looking at the mspgcc source everything look fine, although the portion
of code with !defined(MSP430_HAS_HWMUL) gets used when I compile -
quite puzzling.
Andre
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail