GithubHelp home page GithubHelp logo

mbrukman / abi-compliance-checker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lvc/abi-compliance-checker

0.0 1.0 0.0 1.84 MB

A tool for checking backward API/ABI compatibility of a C/C++ library

Home Page: https://lvc.github.io/abi-compliance-checker/

License: Other

Makefile 0.01% Perl 98.78% Perl 6 0.10% JavaScript 0.28% CSS 0.83%

abi-compliance-checker's Introduction

ABICC 2.2
=========

NAME:
  ABI Compliance Checker (ABICC) - a tool for checking backward binary and source-level compatibility of a C/C++ software library.
  
  The tool analyzes changes in API/ABI (ABI=API+compiler ABI) that may break binary compatibility and/or source compatibility: changes in calling stack, v-table changes, removed symbols, renamed fields, etc.
  
  The tool can create and compare ABI dumps for header files and shared objects of a library. The ABI dump for a library can also be created by the ABI Dumper tool (https://github.com/lvc/abi-dumper) if shared objects include debug-info.
  
  The tool is intended for developers of software libraries and Linux maintainers who are interested in ensuring backward compatibility, i.e. allow old applications to run or to be recompiled with newer library versions.
  
  The tool is developed by Andrey Ponomarenko. You can order additional reports for visualization of the ABI structure and high detailed binary compatibility analysis here: https://abi-laboratory.pro/
  
  The tool is a core of the ABI Tracker and Upstream Tracker projects: https://abi-laboratory.pro/tracker/

INSTALL:
  sudo make install prefix=/usr

REQUIRES:
  Perl 5
  GCC C++
  GNU Binutils
  Ctags
  ABI Dumper (1.1 or newer)

PLATFORMS:
  Linux
  Mac OS X
  Windows

USAGE (WITH ABI DUMPER):

   1. Library should be compiled with "-g -Og" GCC options
      to contain DWARF debug info
      
   2. Create ABI dumps for both library versions
      using the ABI Dumper (https://github.com/lvc/abi-dumper) tool:
      
        abi-dumper OLD.so -o ABI-0.dump -lver 0
        abi-dumper NEW.so -o ABI-1.dump -lver 1
      
   3. You can filter public ABI with the help of
      additional -public-headers option of the ABI Dumper tool.
      
   4. Compare ABI dumps to create report:
   
        abi-compliance-checker -l NAME -old ABI-0.dump -new ABI-1.dump

USAGE (ORIGINAL):
  abi-compliance-checker -lib NAME -old OLD.xml -new NEW.xml

  OLD.xml and NEW.xml are XML-descriptors:

    <version>
        1.0
    </version>

    <headers>
        /path/to/headers/
    </headers>

    <libs>
        /path/to/libraries/
    </libs>

ADV. USAGE:
  For advanced usage, see doc/index.html or output of -help option.

TEST SUITE:
  The tool is tested properly in the ABI Tracker and Upstream Tracker
  projects, by the community and by the internal test suite:
  
    abi-compliance-checker -test

  There are about 100 test cases for C and 200 test cases for C++ API/ABI breaks.

abi-compliance-checker's People

Contributors

aponomarenko avatar ellert avatar lvc avatar malaterre avatar marchpig avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.