Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

CIF compiler Help

The CIF compiler takes one or more CIF files as input and creates a single Module Information File (MIF), which every module needs in order to execute in the Brew MP environment.

The developer creates software components and the CIF file, and runs the CIF compiler to create the MIF file. The developer must compile the software components separately to create a module that can be run on the mobile device.

To compile a single CIF file into a MIF file, use the Resource Manager GUI.

To compile one or more CIF files into a MIF file, use the command-line CIF compiler.

The CIF compiler takes one or more CIF files as input and creates a single MIF file and associated stub code.

CIF Compiler

Based upon the input CIF files, the CIF compiler creates a MIF file and associated stub code.

A software component needs code to create a Brew MP class. This code switches on the ClassID and calls a C function to create the class. The Class primitive in the CIF file contains the name of that constructor function. Based upon all the classes and their constructor functions, the CIF compiler generates code for a high-level module creator function, which delegates the creation to the individual C functions. This code is also known as stub code.