if you have the same end function from a product but some logic statements were shuffled around from one c file (program1.c) to another c file (program2.c) eg
//program1.c
...
UINT8 VarA; //declared globally
UINT8 VarB;
UINT8 VarC;
<some code here "excerpt A">
if (VarA >= VarB){
VarC = VarA+1;
...
}
and
//program2.c
...
<some code>;
...
Compared to output of these files when linker makes the final hex file.
//program1.c
...
<some code>;
...
and this
//program2.c
...
UINT8 VarA; //declared globally
UINT8 VarB;
UINT8 VarC;
<some code here "excerpt A">
if (VarA >= VarB){
VarC = VarA+1;
...
}
"excerpt A" is used to denote the exact same code the exact. assume that the only difference is whats showing between the codes.
What is the codes were slightly different but the output hex files functioned exactly the same? Would you expect the hex file to be different?