Home»Projects »Native gcc c compiler for PowerPC405 on the Xilinx ML403 board»An example of native compilation on the ppc405
Script started on Thu Jan 1 00:06:36 1970
root@ml403:~# pwd /root root@ml403:~# chroot /mnt/nfs /bin/bash root@ml403:/# cd /usr/local/src/ root@ml403:/usr/local/src# date Thu Jan 1 00:07:25 UTC 1970 root@ml403:/usr/local/src# ntpdate -s europe.pool.ntp.org root@ml403:/usr/local/src# date Fri Nov 11 11:39:55 UTC 2005 root@ml403:/usr/local/src# tar xzf flex-2.5.4a.tar.gz root@ml403:/usr/local/src# cd flex-2.5.4 root@ml403:/usr/local/src/flex-2.5.4# time ./configure --prefix=/usr creating cache ./config.cache checking whether ln -s works... yes checking for bison... bison -y checking for gcc... gcc checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for ranlib... ranlib checking for a BSD compatible install... /usr/bin/install -c checking whether make sets $MAKE... yes checking for working const... yes checking how to run the C preprocessor... gcc -E checking whether cross-compiling... no checking for ANSI C header files... yes checking for size_t... yes checking for ANSI C header files... (cached) yes checking for string.h... yes checking for malloc.h... yes checking for sys/types.h... yes checking for working alloca.h... yes checking for alloca... yes updating cache ./config.cache creating ./config.status creating Makefile creating config.h real 0m27.804s user 0m5.190s sys 0m3.880s root@ml403:/usr/local/src/flex-2.5.4# time make cp ./initscan.c scan.c touch .bootstrap gcc -c -I. -I. -g -O ccl.c gcc -c -I. -I. -g -O dfa.c gcc -c -I. -I. -g -O ecs.c gcc -c -I. -I. -g -O gen.c gcc -c -I. -I. -g -O main.c gcc -c -I. -I. -g -O misc.c gcc -c -I. -I. -g -O nfa.c bison -y -d ./parse.y gcc -c -I. -I. -g -O parse.c gcc -c -I. -I. -g -O scan.c gcc -c -I. -I. -g -O skel.c gcc -c -I. -I. -g -O sym.c gcc -c -I. -I. -g -O tblcmp.c gcc -c -I. -I. -g -O yylex.c gcc -c -I. -I. -g -O libmain.c gcc -c -I. -I. -g -O libyywrap.c ar cru libfl.a libmain.o libyywrap.o ranlib libfl.a gcc -g -O -o flex ccl.o dfa.o ecs.o gen.o main.o misc.o nfa.o parse.o scan.o skel.o sym.o tblcmp.o yylex.o libfl.a real 1m20.298s user 1m10.740s sys 0m3.450s root@ml403:/usr/local/src/flex-2.5.4# time make check ./flex -t -p ./scan.l \ | sed s,\"./scan.l\",\"scan.l\", \ | diff scan.c - Check successful, using COMPRESSION="" real 0m0.902s user 0m0.420s sys 0m0.100s root@ml403:/usr/local/src/flex-2.5.4# ./flex --version ./flex version 2.5.4 root@ml403:/usr/local/src/flex-2.5.4# exit root@ml403:~# exit Script done on Fri Nov 11 11:42:56 2005
Back to native gcc for ppc405