Hi,
I took 2 exactly same C files, gave a diff name to each
eg. of C code.
main()
{
int i,j,k=0;
for(i=0;i<10;i++)
for(j=0;j<10;j++)
k++;
return 0;
}
now i compiled these with "cc -c" option and compared the obj files with "diff" and "cmp" utilities in linux and i got differences.
NOW FOR THE QUESTIONS
1. why are the compiled output files differnt for this
although the code is exactly the same?what can be the
reason for this?
2. are there any utilities which can be used to compare the
similarity of two obj files??
thanks
I took 2 exactly same C files, gave a diff name to each
eg. of C code.
main()
{
int i,j,k=0;
for(i=0;i<10;i++)
for(j=0;j<10;j++)
k++;
return 0;
}
now i compiled these with "cc -c" option and compared the obj files with "diff" and "cmp" utilities in linux and i got differences.
NOW FOR THE QUESTIONS
1. why are the compiled output files differnt for this
although the code is exactly the same?what can be the
reason for this?
2. are there any utilities which can be used to compare the
similarity of two obj files??
thanks