Operating System - HP-UX
1826415 Members
3815 Online
109692 Solutions
New Discussion

Re: binaries size changes from one machine to another...

 
Favreau Cyrille
Occasional Contributor

binaries size changes from one machine to another...

Hi all,

I am having a slight problem on a production machine that generates binaries that are about 2 or 3 times bigger than on my development station. The OS is the same, HPUX 11 but my dev. machine has a slighlty higher level of patches. Could that explain the difference I see?

Has anyone ever noticed that kind of behaviour?

Any help more than welcome :-D
Cyrille
cyrille_favreau
8 REPLIES 8
Favreau Cyrille
Occasional Contributor

Re: binaries size changes from one machine to another...

Oops, one more thing: The program is written in c++ and I use aCC as a compiler :-D

Thanx
Cyrille
cyrille_favreau
Stefan Farrelly
Honored Contributor

Re: binaries size changes from one machine to another...

The patch level could well make a difference, especially if you have linker patches installed. Youve got to check the 2 to see the differences.

What does> what /opt/aCC/bin/aCC show on both servers ? The same ?
Im from Palmerston North, New Zealand, but somehow ended up in London...
Stefan Farrelly
Honored Contributor

Re: binaries size changes from one machine to another...

And what does> what /usr/bin/ld
show on both servers ?
Im from Palmerston North, New Zealand, but somehow ended up in London...
Martin Johnson
Honored Contributor

Re: binaries size changes from one machine to another...

use the "what" command on the binaries. That will tell you what patches have been applied to the binaries.


HTH
Marty
Wodisch_1
Honored Contributor

Re: binaries size changes from one machine to another...

Hi,

my opinion is that you have
- compiled/linked statically
- different versions/patch-levels of the libraries used
- maybe debug-libraries on the production machine (hence bigger libraries)

Just my $0.02,
Wodisch
Wodisch_1
Honored Contributor

Re: binaries size changes from one machine to another...

Hi,

my opinion is that you have
- compiled/linked statically
- different versions/patch-levels of the libraries used
- maybe debug-libraries on the production machine (hence bigger libraries)
- "strip"ped the codefiles on the development machine

Just my $0.02,
Wodisch
A. Clay Stephenson
Acclaimed Contributor

Re: binaries size changes from one machine to another...

I absolutely agree; the only thing that could cause a 2x-3x size difference is statically vs dynamically linked executables.
If it ain't broke, I can fix that.
Jeff Billman
Frequent Advisor

Re: binaries size changes from one machine to another...

You can also get a difference if you are compileg for PA1.1 .vs PA2.0 architecture. Also, different models of the same proicessor architecture will compile to different sized binaries. I have not see one 2-3times bigger though.

I would suspect the aC++ compiler and runtime version are probably the issue.

One other thing to check, are you using any third party libraries in your app? Are they the same versions? Are you using Oracle? Is it the same version and patch level on both machines. I have seen the version of Oracle compield against greatly affect the size of the binary.