[H] PRO*C executable size increase

From: Phil Melendez <pme_at_crash.cts.com>
Date: Sun, 26 Mar 1995 01:05:44 GMT
Message-ID: <D60wDL.8z_at_crash.cts.com>


The company I work for is migrating our application from Oracle 6.0.36 to Oracle 7.1.4. During the course of this migration I have noticed that some of our executables have grown by 990k. The growth was in the .text area of the executables. I traced the increase in size to the following Oracle libraries libsqlnet (400k growth) and libnlsrtl.a (new addition to link line, 500k growth). Previously, the executable size was approximatly 134k, now its around 1.08 meg. I been testing modifications to the link line to reduce the size of the executable and I found something that puzzles. I can reduce the size of the executable to 54k, but when I use another link line its 1.2 meg (stripped 1.08 meg). The program works both ways. I am under the impression that only the object modules required are linked in. This particular program does not connect to Oracle at all, it just writes text to the screen with diffrent attributes so it should not require any Oracle objects.

Here are the link lines used:

-----------link script-----

set -xv

# small exec size
 cc scr.o -m -o ./scr.small /gers/lib/rev_9.9/wip/aps_6.a
/gers/lib/rev_9.9/sys/s ys_6.a /prod/ora_7.1.4/lib/libsql.a
/prod/ora_7.1.4/lib/libcore.a /prod/ora_7.1. 4/lib/libora.a -ldgc -lnsl_s
-L/usr/lib/stlib -llu62 -lsna -llu62 -lm /gers/lib/ rev_9.9/sys/sys_6.a > scr.small.out 2>&1

# big exec size
 cc scr.o -m -o ./scr.big /gers/lib/rev_9.9/wip/aps_6.a
/gers/lib/rev_9.9/sys/sys _6.a /prod/ora_7.1.4/lib/libsql.a
/prod/ora_7.1.4/lib/osntab.o /prod/ora_7.1.4/l ib/libsqlnet.a
/prod/ora_7.1.4/lib/libnlsrtl.a /prod/ora_7.1.4/lib/libcore.a /pr
od/ora_7.1.4/lib/libnlsrtl.a /prod/ora_7.1.4/lib/libora.a
/prod/ora_7.1.4/lib/li bcore.a -ldgc -lnsl_s -L/usr/lib/stlib -llu62 -lsna
-llu62 -lm /gers/lib/rev_9.9 /sys/sys_6.a > scr.big.out 2>&1

$ ls -l scr*

-rwxrwxrwx   1 pme      test3    1294760 Mar 24 17:24 scr.big
             
-rwxrwxrwx   1 pme      test3      52428 Mar 24 17:24 scr.small

Please post or email any responses and thank you for assistance. Received on Sun Mar 26 1995 - 03:05:44 CEST

Original text of this message