Re: Large C Executables

From: Frank Abney <abneyf_at_osshe.edu>
Date: 1997/01/06
Message-ID: <Pine.SOL.3.91.970106162624.18665A-100000_at_osshe.edu>#1/1


What needs to be looked at is the way you system links the executable in Pro*C. Pro*C can be linked dynamically or statically. You need to look at dynamic linking. I have not done this yet, but I know some who have. I understand it takes significantly longer to compile, but cuts the size from the 2.3meg to under 300k for some executables.


Frank Abney                              Email: abneyf_at_osshe.edu
Oregon State System of Higher Education Phone: (541) 737-6269

On Thu, 2 Jan 1997, Mike Biggin wrote:

> David Kaiser wrote:
> >
> > With each Oracle release, our Pro*C programs are increasing in size. We
> > are not upgrading to 7.3.2.3 and the C programs are a minimum of 2.3MB.
> > With 7.2.2.3 they were around 1.6MB.
> >
> > Anyone know how to trim these down? Thanks.
> > --
> >
>
>
> If you are running on a Unix platform, you can use the 'strip' command
> to reduce the size of your executables. This command will remove the
> symbol table and any debugging information from the executable.
>
> I would suggest that you only do this when you have finished debugging
> and are ready to generate a production release of your software.
>
> --
> Mike Biggin
> DENR, South Australian Government
> E-mail: mbiggin_at_denr.sa.gov.au
> Phone: +61 8 8204 9217; Fax: +61 8 8204 9017
>
> Unless explicitly attributed, the opinions expressed are personal
> and not those of DENR or the South Australian Government.
>
>
Received on Mon Jan 06 1997 - 00:00:00 CET

Original text of this message