473,811 Members | 3,014 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

lost object files- recompiling give different binary size!!

I had deleted my object files accidently. Now to analyse a core i need
object files. If I recompile the same source code with imake on
solaris, i m getting the binary of different size. Is it because of
different compilation date and time?

Jun 23 '06 #1
3 2012
Pep
linux_bp wrote:
I had deleted my object files accidently. Now to analyse a core i need
object files. If I recompile the same source code with imake on
solaris, i m getting the binary of different size. Is it because of
different compilation date and time?


Are you sure the source has not been modified in any way, or the libraries
you link against have not changed or that you have specified different
optimisation levels?

Jun 23 '06 #2
Pep wrote:
linux_bp wrote:

I had deleted my object files accidently. Now to analyse a core i need
object files. If I recompile the same source code with imake on
solaris, i m getting the binary of different size. Is it because of
different compilation date and time?

Are you sure the source has not been modified in any way, or the libraries
you link against have not changed or that you have specified different
optimisation levels?

Or any of the tools have been updated.

--
Ian Collins.
Jun 23 '06 #3
"linux_bp" <ri**********@g mail.com> wrote in message
news:11******** *************@m 73g2000cwd.goog legroups.com...
I had deleted my object files accidently. Now to analyse a core i need
object files. If I recompile the same source code with imake on
solaris, i m getting the binary of different size. Is it because of
different compilation date and time?


If everything is exactly the same, you should get the same file size,
although there may actually be trivial differences in the binary (the
compiler may put the date/time in the executable).

If you are getting a different executable size, something has changed.
Maybe a compile switch has changed (different optimization), maybe a header
or source file has changed, or something. Unfortunately, I can't tell you
what.

That is why a lot of shops will put together everything used to make a build
and archive it so they can get the same executable to go back to a version.
Jun 23 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
1516
by: Alexander Stippler | last post by:
Hello, I have written a little library which consists of template functions and classes (99%) and two non-template classes. I'd appreciate very much if I could use the library by only including some header files without having to deal with building and linking a library or object files. Are there any tricks how this can be achieved? I guess not, but perhaps you know better. Best regards,
11
2938
by: JS | last post by:
I am a bit confused about the meaning of object files (.o). I read this in a make file: lotto: main.o init.o select.o sort.o display.o gcc main.o init.o select.o sort.o display.o -o lotto main.o: main.c lotto.h gcc -c main.c
0
1167
by: IanT | last post by:
Hi I'm using Visual C++ .net I'm getting the linker error that one of my object files cant be found It seems that my compiler isnt producing .obj files (or at least not putting them in the debug folder) I've done a harddrive search for the .obj file and it seems that its not being produced at all. Infact the compiler doesnt seem to be producing any object files, but its not giving an error untill I get to linking. Any ideas why there are no...
1
962
by: Lynn McGuire | last post by:
Is there a limit on the number of object files for VC++ 2003 ? I am trying to port a very large program with about 4000 source code files. The linker is giving me an error message about trying to find a non-existent object file. Thanks, Lynn
6
2642
by: Nadia | last post by:
Hi, I am having the symbol reference error while linking the object files. I have added the library at the end of the commmand . g++ -D_XWIN -DRT_DIAG=cerr -DRT_INFO=cerr -I/usr/X11R6/include -o simex AuxFctns.o CompList.o Composed.o Event.o FandCOp.o IconDraw.o Pane.o \ Ph1.o Ph2.o Ph3.o Ph4.o Ph4Run.o Ph5.o RTSigSup.o RunTime.o SchCell.o Schmtc.o \ ScrnTile.o Signal.o Sim.o SkewHeap.o SupDisp.o SupProbe.o SwList.o
2
1969
by: dreamer29 | last post by:
I want to find out the unused function names from the object files that are dynamically linked later.the object files are generated from C code. Please tell me some tool to generate the call graph.gprof cannot be used since the program is not run.
4
3009
by: AA | last post by:
Hi, I am having to vb files. One is located under C:/VB/main and the other is under C:/VB/class. File under main looks like: <code> Module Module1 Sub Main() Dim test As New Test1
2
3133
Claus Mygind
by: Claus Mygind | last post by:
Using the sample script from the php manual <?php $dir = "/etc/php5/"; // Open a known directory, and proceed to read its contents if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { echo "filename: $file : filetype: " . filetype($dir . $file) . "\n";
0
9734
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10398
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10416
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9215
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7676
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5567
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5702
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3881
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.