Binary comparison of executables generated by TI CGT tools to reduce test cycle time

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

Contents

Introduction

In order to reduce system test cycle it is required to compare the pre-build binaries ( which are part of release package ) with the re-build binaries ( gets generated when system test team rebuilds the package)”. These two binaries needs to be same (or almost same). This binary comparison is also useful in various other situation like debug the issues that might occur when customer tries to rebuild the release package.

We also noticed that certain sections or certain portions of executable are different even if both were built using same set of tools, components & release packages. This differences does not cause for any mismatch in the behavior.

This app note documents the list of procedures to follow in comparing two binaries generated by the TI CGT tool, so as to ensure both the binaries are functionally same.

Tools used for comparison

Any of the below utility can be used to compare the two executable, depending on the situation. This document describes when to use which utility.

fc - DOS utility to compare two plain binaris
diff - Linux utility to compare two plain binaries
objdiff - Utility to compare section by section of TI CGT generated binaries.
 This utility is part of the product "Code_Generation_Tools_XML_Processing_Scripts", & this can be downloaded from below link 
  "http://processors.wiki.ti.com/index.php/Code_Generation_Tools_XML_Processing_Scripts"

Compare binaries generated on same machine

Note: While using the objdiff tool the sizes of the section must not differ, other wise it reads all other subsequent sections also different. Read documentation of this for more info. So it is safe to ensure that dependent paths are same for build.
If the same path is ensured on each build then fc of diff tool can be used for comparison purpose.

Compare binaries generated on different machines

E2e.jpg For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Binary comparison of executables generated by TI CGT tools to reduce test cycle time here.
Hyperlink blue.png Links
ARM Microcontroller MCU ARM Processor Digital Media Processor Digital Signal Processing Microcontroller MCU Multi Core Processor
Ultra Low Power DSP 8 bit Microcontroller MCU 16 bit Microcontroller MCU 32 bit Microcontroller MCU

Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox