Re: Minimize the size of 4ge ?
Posted in 1999
Topics: Performance & Tuning, Storage & Space Management, Stored Procedures & SPL, Connectivity: ESQL/C, 4GL & Embedded SQL, Server Administration, Platform-Specific Issues, Internationalization & Character Sets
>>> David McNight <dmcnight@bju.edu> 09/27/99 06:05PM >>>
>Does this improve performance by smaller executable sizes; by load time into
>memory and execution time because of less code to "wade through"?
Only the executable pages that are required should be loaded in to memory via the normal
page faulting mechanism, therefore if an area of the application is not used then the vnode
pages associated with that area of the app will not be loaded into memory. The whole app
should not be loaded, but the swap is tested to ensure that the application can be swapped out if required.
The 'less code' to wade through is more down to application design and code path
lengths and to some extent how good your compiler is.
"Carlson@WHSmith" wrote:
> 4GL 7.2x includes the GLS libraries as well, which will increase the
> size of the executable. We use the -shared directive in c4gl and the
> 'strip' (Unix) command to shrink the executable size somewhat.
>
> John Carlson
> Informix DBA
> WHSmith USA
>
> Ph. Chantry wrote:
> >
> > Hi all.
> >
> > We are to migrate our development server from:
> > SCO OS 5.0.4
> > C compiler provided by SCO (SCO Development System)
> > INFORMIX-4GL Version 6.04.UC1
> >
> > to:
> > Solaris 7
> > C compiler = gcc
> > INFORMIX-4GL Version 7.20.UD7
> >
> > Our problem: the applications compiled from the same source codes have very
> > different sizes on both the systems:
> >
> > Test source codes:
> >
> > # cat c.c
> > main()
> > {
> > printf("Hello !\\n");
> > }> >
> > # cat 4gl.4gl> > MAIN
> > DISPLAY "Hello !"
> > END MAIN
> >
> > After compilation on both servers:
> > # cc c.c
> > # c4gl 4gl.4gl -o 4gl.4ge
> >
> > we have on the old SCO box:
> > # ls -l a.out 4gl.4ge
> > -rwxr-xr-x 1 owner group 620856 Sep 24 09:45 4gl.4ge*
> > -rwxr-xr-x 1 owner group 46330 Sep 24 09:45 a.out*> >
> > and on the new SOLARIS box:
> > # ls -l a.out 4gl.4ge
> > -rwxr-xr-x 1 owner group 1420508 Sep 24 09:45 4gl.4ge*
> > -rwxr-xr-x 1 owner group 24364 Sep 24 09:45 a.out*> >
> > So, on the new server, the C program is about twice smaller, while the 4ge
> > is about twice bigger !
> > Obviously, the growth of the size of the 4ge is not due to the C compiler,
> > but to c4gl.
> >
> > Our question: is it a way to customize the behavior of c4gl, in order to
> > minimize the size of 4ge ?
> >
> > Thanks in advance.
Paul Watson
WF Software Ltd
Tel: +44 1436 674729
Fax: +44 1436 678729
www.wfsoftware.com/informix
# If you broke it, hide the evidence
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************