Skip navigation.
Home
The QNX Community Portal

View topic - Compilation question

Compilation question

Read-only archive of qnx.qnx4 (General QNX4 Discussion Group) at inn.qnx.com

Compilation question

Postby Carlos Clarke » Sat Jul 29, 2006 11:44 pm

I have a program that produces a different executable
every time I compile it. Nothing changes between
compilations. I make the file, rename it, remove the
..o files and remake it. The result has anywhere
from 2 to 5 bytes difference. None of my other
compilations do this.

Anyone have any idea what is going on?

Carlos
Carlos Clarke
 

Re: Compilation question

Postby booBot » Sun Jul 30, 2006 11:40 am

On Sun, 30 Jul 2006 03:44:40 +0400, Carlos Clarke <carlos@ptdprolog.net>
wrote:
I make the file, rename it, remove the .o files and remake it.
And what if you do not rename but just remove *.o?


May be you see the result of program getting it's av[0]?

Tony.
booBot
Senior Member
 
Posts: 633
Joined: Tue Feb 24, 2004 5:07 pm

RE: Re: Compilation question

Postby maschoen » Sun Jul 30, 2006 6:10 pm

Maybe you have a compile time macro that inserts the time of compilation?
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: Compilation question

Postby Jeffrey Adler » Sun Jul 30, 2006 6:58 pm

You might try running wdisasm on each of the ".o" files, and see if there
are any changes in the object files using diff.

"Carlos Clarke" <carlos@ptdprolog.net> wrote in message
news:eesnc2tgl6qqk7ikvq9p2bru0joefbhi41@4ax.com...
I have a program that produces a different executable
every time I compile it. Nothing changes between
compilations. I make the file, rename it, remove the
.o files and remake it. The result has anywhere
from 2 to 5 bytes difference. None of my other
compilations do this.

Anyone have any idea what is going on?

Carlos
Jeffrey Adler
 


Return to qnx.qnx4

Who is online

Users browsing this forum: No registered users and 2 guests