Dmitry Zuikov wrote:
:
d...@x200:~$ /opt/mspgcc/bin/msp430-gcc -v
Reading specs from /opt/mspgcc/lib/gcc-lib/msp430/3.2.3/specs
Configured with: ./configure --target=msp430 --prefix=/opt/mspgcc
--disable-multilib --disable-libc --disable-libssp --disable-intl
--disable-libiberty --with-gcc --with-gnu-ld --with-gnu-as --with-stabs
--disable-shared --disable-threads --disable-win32-registry
--disable-nls --enable-languages=c,c++
Thread model: single
gcc version 3.2.3
:
Hehe, funny. I meant that you should compile your example with the -v
switch active and send the output...
For me it shows like below:
$ msp430-gcc -Wall -mmcu=msp430x2418 -v test.c
Reading specs from /usr/local/msp430/lib/gcc-lib/msp430/3.2.3/specs
Configured with: /opt/mspgcc-stchps462only/src/gcc-3.2.3/configure
--target=msp430 --prefix=/usr/local/msp430 --enable-languages=c,c++
--disable-nls -v
Thread model: single
gcc version 3.2.3
/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/cc1.exe -lang-c -v
-D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3
-D__GXX_ABI_VERSION=102 -DMSP430 -D__MSP430__ -D__MSP430 -D__NO_INLINE__
-D__STDC_HOSTED__=1 -DMSP430_HAS_HW_MUL -D__MSP430_2418__ -D__MSP430X__
-DMSP430_HAS_HWMUL -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int
-D__INT_MAX__=32767 test.c -quiet -dumpbase test.c -mmcu=msp430x2418
-Wall -version -o /tmp/ccFsfPmh.s
GNU CPP version 3.2.3 (cpplib) (GNU assembler syntax)
GNU C version 3.2.3 (msp430)
compiled by GNU C version 3.4.4 (cygming special, gdc 0.12,
using dmd 0.125).
ignoring nonexistent directory "/usr/local/msp430/msp430/sys-include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/msp430/include
/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/include
/usr/local/msp430/msp430/include
End of search list.
test.c:6: warning: return type of `main' is not `int'
/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/../../../../msp430/bin/as.exe
-mmcu=msp430x2418 -o /tmp/ccz9M6On.o /tmp/ccFsfPmh.s
/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/../../../../msp430/bin/ld.exe
-m msp430x2418
/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/../../../../msp430/lib/crt430x2418.o
-L/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/msp2
-L/usr/local/msp430/lib/gcc-lib/msp430/3.2.3
-L/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/../../../../msp430/lib/msp2
-L/usr/local/msp430/lib/gcc-lib/msp430/3.2.3/../../../../msp430/lib
/tmp/ccz9M6On.o -lgcc -lc -lgcc
Also please use -Wall!
Hardy