[ECOS] Configtool building and code size
Robert Cragie
rcc@jennic.com
Mon Aug 4 10:04:00 GMT 2003
I had some fun and games trying to build the Configtool from source on SuSE
Linux 7.2, so I thought I'd share them.
What I ended up doing was as follows:
1) Downloaded glib-1.2.10.tar.gz and gtk-1.2.10.tar.gz from
ftp://ftp.gtk.org/pub/gtk/v1.2/ and installed (glib first) following the
guidelines in the INSTALL files.
2) Downloaded wxGTK-2.4.0.tar.bz2 and wxGTK-2.4.0-scrolwin.patch via link on
http://www.ecoscentric.com/devzone/configtool.shtml, unzipped, patched and
built according to the instruction on the eCosCentric website, however I did
NOT use '~' in the --prefix path; this causes problems on 'make install' as
make can't expand '~'.
3) I had to make symbolic links for libtcl; in my case:
ln -s /usr/lib/libtcl8.3.a /usr/lib/libtcl.a
ln -s /usr/lib/libtcl8.3.so /usr/lib/libtcl.so
4) Built infra and configtool, again NOT using '~' in any of the paths.
This now seems to work OK. I would suggest to the eCosCentric guys that the
web pages are updated?
The reason I built the configtool is to try to get the code size down for
OpenRISC implementation. My really simple program:
<hello.c>
int my_bss;
int my_data = 2;
const int my_rodata = 4;
int main(int argc, char **argv)
{
int i = 1;
int j = 2;
return i + j;
}
</hello.c>
built with:
or32-elf-gcc -g -I../install/include hello.c -L../install/lib -o
hello -Ttarget.ld -nostdlib
ends up this big:
text data bss dec hex filename
82440 2632 14832 99904 18640 hello
which seems rather large to me. Any idea how I can get it smaller?
Robert Cragie, Design Engineer
_______________________________________________________________
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
http://www.jennic.com Tel: +44 (0) 114 281 2655
_______________________________________________________________
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list