Thank you for your reply. I can precise some things: >> Then I tried this (just like msp430) : >> >> LIB1ASMSRC = target/mulhi3.S >> LIB1ASMFUNCS = __mulhi3 > > Looks right, assuming you've written mulhi3.S. I have. Will the function __mulhi3 be placed in libgcc.a? Then, to compile a program which use multiplications, should I link with -lgcc option? >> Moreover, when building GCC, it finishes with this error : >> *** Configuration target-unknown-none not supported >> make[1]: *** [configure-target-libgcc] Error 1 >> make[1]: Leaving directory `/home/me/gcc/build_target' >> make: *** [all] Error 2 > > This is why libgcc wasn't built. You need to patch gcc/config.gcc to > support your target. Actually I don't know how you would have gotten > this far without doing that, so there may besomething else you need to > do. Indeed, I already patched gcc/config.gcc. More recently, I found libgcc/config.host and patched it, which solved the error above. >> This is the same, I am not intrested in libstdc++, how to disable that? > > Run configure with --enable-languages=c. Well, that's what I already do. I tried something else: I removed the directory libsdtc++v6 (and other similar lib directories) in GCC sources and then no more error about that. Now, the problem is that the port is not complete and, as a consequence, when compiling libgcc2.c this happens : /home/me/gcc/build_target/./gcc/xgcc -B/home/me/gcc/build_target/./gcc/ -B/home/me/target/target/bin/ -B/home/me/target/target/lib/ -isystem /home/me/target/target/include -isystem /home/me/target/target/sys-include -O2 -g -g -O2 -O2 -O2 -g -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../.././gcc -I../../../gcc-4.3.3/libgcc -I../../../gcc-4.3.3/libgcc/. -I../../../gcc-4.3.3/libgcc/../gcc -I../../../gcc-4.3.3/libgcc/../include -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.c \ ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.c: In function ‘__mulsi3’: ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.c:560: internal compiler error: Segmentation fault I would like (temporarily) not to compile libgcc2. But, in the same time, enable compiling of my multhi3. Is that possible? It would be a libgcc without libgcc2. Thank you. Regards. Florent