[tools-compilers] Compiling OS/Net library with "-xipo" fails with CTF error...

2007-12-21 Thread Roland Mainz
Hi! While trying to compile an OS/Net library (libast.so.1 in this case) with -xipo=2 I'm getting the following error: -- snip -- /home/test001/ksh93/on_build1/test1_x86/usr/src/tools/proto/opt/onbld/bin/i386/cw -_cc -o libast.so.1 -G -hlibast.so.1 -ztext -zdefs -zcombreloc -M../mapfile-ve

[tools-compilers] Automagically sorting functions+data per usage ?

2007-12-21 Thread alexander.gorshe...@sun.com
On Fri, 21 Dec 2007, Roland Mainz wrote: > > Hi! > > > > Does Sun Studio/Forte/Workshop have an option to sort functions+data > automagically that related functions+read-only data are kept close > together, maybe share the same memory page (the idea would be to reduce > the number of ITLB+DTL

[tools-compilers] Automagically sorting functions+data per usage ?

2007-12-21 Thread Roland Mainz
Hi! Does Sun Studio/Forte/Workshop have an option to sort functions+data automagically that related functions+read-only data are kept close together, maybe share the same memory page (the idea would be to reduce the number of ITLB+DTLB page faults), preferably without the need to hack a map

[tools-compilers] Compiler/linker option to strip allunusedcode/symbols from a shared library ?

2007-12-21 Thread Joerg Schilling
Roland Mainz wrote: > Joerg Schilling wrote: > > Roland Mainz wrote: > > > Joerg Schilling wrote: > > > > Roland Mainz wrote: > > > > > Does Sun Workshop/Forte/Studio have an option to strip all unused > > > > > code/symbols from a shared library ? > > > > > > > > Do you mean strip -x > > > > >

[tools-compilers] Compiler/linker option to strip allunusedcode/symbols from a shared library ?

2007-12-21 Thread Roland Mainz
Joerg Schilling wrote: > Roland Mainz wrote: > > Joerg Schilling wrote: > > > Roland Mainz wrote: > > > > Does Sun Workshop/Forte/Studio have an option to strip all unused > > > > code/symbols from a shared library ? > > > > > > Do you mean strip -x > > > > No... > > Then please describe what yo

[tools-compilers] Compiler/linker option to strip all unusedcode/symbols from a shared library ?

2007-12-21 Thread Joerg Schilling
Roland Mainz wrote: > Joerg Schilling wrote: > > Roland Mainz wrote: > > > Does Sun Workshop/Forte/Studio have an option to strip all unused > > > code/symbols from a shared library ? > > > > Do you mean strip -x > > No... Then please describe what you mean J?rg -- EMail:joerg at schil

[tools-compilers] Compiler/linker option to strip all unusedcode/symbols from a shared library ?

2007-12-21 Thread Roland Mainz
Joerg Schilling wrote: > Roland Mainz wrote: > > Does Sun Workshop/Forte/Studio have an option to strip all unused > > code/symbols from a shared library ? > > Do you mean strip -x No... Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist,

[tools-compilers] Compiler/linker option to strip all unusedcode/symbols from a shared library ?

2007-12-21 Thread Roland Mainz
Chris Quenelle wrote: > Roland Mainz wrote: > > > > Does Sun Workshop/Forte/Studio have an option to strip all unused > > code/symbols from a shared library ? > > There's not a "point and shoot" kind of feature that removes "unused stuff" > from your program. > > The optimizer can remove uncalled

[tools-compilers] Compiler/linker option to strip all unusedcode/symbols from a shared library ?

2007-12-21 Thread Chris Quenelle
Roland: > Erm... the problem is a bit... erm... messy and revolves around ksh93 > and libast. libast has code which isn't (currently) used by ksh93, a > couple of legacy symbols, may be gradually phased out in the upstream > codebase and which are not in our OS/Net mapfile, however I would prefer >

[tools-compilers] Compiler/linker option to strip all unused code/symbols from a shared library ?

2007-12-21 Thread Paul Floyd
Hi I'm not 100% certain exactly how applicable this is to the Sun tools, but I suspect that it does apply. In general, when linking an app to object files (standalone or in a static library) then the linker will normally either link the entire .o if any symbol is used, or not link it if nothin