Installation
The BIP tools provided here consist of a compiler for generating code from BIP sources, and an execution engine used as a scheduler for executing the generated code. We currently target C++ code generation, but the tool-chain allows the use of multiple backends at the same time.
Notice that these tools are only provided for GNU/Linux systems. They are known to work correctly on Mac OSX, and probably other Unices, but we do not support them currently. Please contact us for specific installations.
The compiler requires Java VM, version 6. For compiling the generated C++ code, you also need a standard C++ compiler with support for the STL, and C++0x for the optimized engine and C++11 for the multithread engine. We strongly recommend to use the GNU compiler g++ version 4.8 or above (GCC). The compilation of the generated code needs also CMake.
If you use Ubuntu 14.04 LTS, to install all the dependencies required for the compiler you simply need to install packets default-jre, g++, cmake, e.g. using the following command in a terminal:
$ sudo apt-get install default-jre g++ cmakeQuick install
Download the archive corresponding to the latest version of BIP, and matching your platform:
Extract it and source the ’setup.sh’ located at the root of the archive.
Check the corresponding section in the documentation for more details.
Separate archives
If you can’t use the quick install, you can still download and install separate archives corresponding to the latest version of BIP:
- Compiler: Download the archive containing the compiler here. Follow the installation instruction of the compiler.
- Engines: Download also the archive containing the engine using the correct link matching your platform and your needs (see also installation instruction):
- reference engine x86 machines / x86 64 bits machines
- optimized engine x86 machines / x86 64 bits machines
- multithread engine x86 machines / x86 64 bits machines
Try Hello World Example
Once the BIP tools are correctly installed, you can try the Hello World example of provided in the BIP tutorial. Instruction for compiling this example can be found using the following link: Hello World.
All tutorial’s examples can be downloaded following this link.
Documentation
A full documentation for the BIP tools and language is available using the following links. Notice that the revision number of the documentation is different from the one of the tools (i.e. RC6.1 instead of RC6) since it was fixed recently (more information about revisions).
- as HTML
- as PDF
- as PDF minibook.
This documentation contains:
- a description of the BIP2 language (syntax and semantics)
- installation instructions for both the compiler and the reference BIP engine used for executing C++ code
- a tutorial illustrating the main features of the language.
Notes about revisions
More information about the revisions of the BIP compiler and engines can be found here.
Contacts
Please feel free to report bugs, problems, comments to: Jacques Combaz.
If you need to report a bug, please include (if possible) all the source files and a log of everything (compilation warnings/errors, execution trace, ...).
Former developers: Anakreontas Mentis, Marc Poulhiès
Revisions
Thu April 30 2015 - New release 2015.04-RC7
Main changes are:
- added warnings for dead code, uninitialized variables, non 1-safe Petri nets, and non determinism using static analysis of both code and Petri nets
- fixed exponential execution time when generating C++ code of broadcast connectors (with large number of ports)
- various bug fixs.
Download links are available below:
- compiler + engines for x86 machines (2015.04 RC7)
- compiler + engines for x86 64 bits machines (2015.04 RC7)
Separate download links are available below:
- compiler (2015.04 RC7)
- reference engine for x86 machines (2015.04 RC7)
- reference engine for x86 64 bits machines (2015.04 RC7)
- optimized engine for x86 machines (2015.04 RC7)
- optimized engine for x86 64 bits machines (2015.04 RC7)
- multithread engine for x86 machines (2015.04 RC7)
- multithread engine for x86 64 bits machines (2015.04 RC7)
Tue Feb 10 2015 - Minor revision of the documentation 2015.02-RC6.1
Minor revision of the documentation only to fix the examples of the tutorial in the documentation. We keep revision 2014.10-RC6 for the compiler and the engines.
Wed Oct 15 2014 - New release 2014.10-RC6
Main changes are:
- switched to g++ 4.8.2 and Java 6
- added a multithread engine for parallel execution of BIP programs
- modified native types (now: bool, int, float and string)
- types and const variable of imported packages can be referenced with fully qualified names or simple names
- all identifiers belong to the same namespace
- added type checking for expressions and statements
- added declaration of subtype and backend name for external types
- added declaration of prototypes for external functions/operators
- added check in the compiler for cycles in priorities of compounds
- various bug fixes.
Download links are available below:
- compiler + engines for x86 machines (2014.10 RC6)
- compiler + engines for x86 64 bits machines (2014.10 RC6)
Separate download links are available below:
- compiler (2014.10 RC6)
- reference engine for x86 machines (2014.10 RC6)
- reference engine for x86 64 bits machines (2014.10 RC6)
- optimized engine for x86 machines (2014.10 RC6)
- optimized engine for x86 64 bits machines (2014.10 RC6)
Wed Jun 12 2013 - New release 2013.06-RC5
Main changes are:
- new optimization levels in the C++ code generator
- improved performance of the C++ generated code
- improved performance of the optimized engine
- various bug fixes.
Download links are available below:
- compiler + engines for x86 machines (2013.06 RC5)
- compiler + engines for x86 64 bits machines (2013.06 RC5)
Separate download links are available below:
- compiler (2013.06 RC5)
- reference engine for x86 machines (2013.06 RC5)
- reference engine for x86 64 bits machines (2013.06 RC5)
- optimized engine for x86 machines (2013.06 RC5)
- optimized engine for x86 64 bits machines (2013.06 RC5)
Mon Jul 23 2012 - New release 2012.07-RC4
Main changes are:
- const data support in package
- exploration support in engine and C++ generated code
- various bug fixes and optimizations.
Download links are available below:
- compiler + engines for x86 machines (2012.07 RC4)
- compiler + engines for x86 64 bits machines (2012.07 RC4)
Separate download links are available below:
- compiler (2012.07 RC4)
- reference engine for x86 machines (2012.07 RC4)
- reference engine for x86 64 bits machines (2012.07 RC4)
- optimized engine for x86 machines (2012.07 RC4)
- optimized engine for x86 64 bits machines (2012.07 RC4)
Tue May 22 2012 - New maintenance release 2012.05 for the new BIP tools
Main changes are:
- bug fix for BIP backend
- gdb debugging
- various bug fixes
This is a maintenance release with mainly bug fixes and minor feature enhancement.
Download links are available below:
- compiler + engines for x86 machines (2012.05 RC3.1)
- compiler + engines for x86 64 bits machines (2012.05 RC3.1)
Separate download links are available below:
- compiler (2012.05 RC3.1)
- reference engine for x86 machines (2012.05 RC3.1)
- reference engine for x86 64 bits machines (2012.05 RC3.1)
- optimized engine for x86 machines (2012.05 RC3.1)
- optimized engine for x86 64 bits machines (2012.05 RC3.1)
Thu Apr 26 2012 - New release 2012.04 for the new BIP tools
Main changes are:
- easier installation
- better diagnostics on BIP source code
- better support for cross package type use
- support for if/then/else
- better performance (in particular with the use of optimized engine)
- 64 bit support
- several bug fixes/small enhancements
- better documentation
Download links are available below:
- compiler + engines for x86 machines (2012.04 RC3)
- compiler + engines for x86 64 bits machines (2012.04 RC3)
Separate download links are available below:
- compiler (2012.04 RC3)
- reference engine for x86 machines (2012.04 RC3)
- reference engine for x86 64 bits machines (2012.04 RC3)
- optimized engine for x86 machines (2012.04 RC3)
- optimized engine for x86 64 bits machines (2012.04 RC3)
Tue Feb 7 2012
New versions for the BIP compiler and reference engine are available. Please note that these software are still under development and are provided as preview (BETA) versions. Notice also that these versions do not target performances, and the executables obtained from BIP source files can be very slow or consume a large amount of memory.
Download links are available below:
Main difference between BIP2 old and new versions
For this new version of BIP, the tool-chain has been rewrote from scratch.
This new version of BIP corresponds to also full cleanup of the BIP2 language and its semantics. This required slight modifications of the BIP language and its semantics. The main differences are the following:
- internal transitions of atoms: we now make clear distinction between internal transitions and transitions labelled by internal (non exported) ports
- merged export of ports: several (internal) ports of an atom or a compound can be exported through a single port
- connectors:
- exported ports: as for atoms, an exported port of a connector has to be connected to enable an interaction
- define is restricted a list of eventually quoted ports
- we clarified the the relationship between define and the list of on statements
- we check for consistency of transfer functions (up and down functions)
- priorities:
- we now compute the transitive closure of the rules (maximal progress is still considered as default)
- priorities are applied globally to hierarchical connectors of compounds
- we check for cycles in the priorities
- opaque code has been removed
- a clear interface with external C++ code has been specified