BARfly Help - Run Menu - Compiling BAR implementation files

  Compiling BAR implementation files

This page describes content of the BARfly Gold build.

BARfly lets you edit, compile, and test your own implementation files using an integrated editor and compiler.  When a "mixed" or "text" version of an implementation file is displayed in the current view, you can edit the source, which is displayed in the data display window's edit control.  To compile the I.F., select Run.Compile from the menu or simply press the F7 key.

Optionally, you can choose to specify additional command-line arguments for the compilation process.  To set command-line arguments for the compilation, select Run.Command-line Arguments from the menu.  The dialog box to the left can then be used to specify the arguments.

The arguments, separated by spaces, act as additional preprocessor "#define" statements.  This example would cause compilation to proceed as if the statement "#define BARCC" had appeared before all other statements in the I.F.

It is not necessary to specify the /d switch, which identifies preprocessor statements.

BARfly invokes BARCC and reports any compilation errors and warnings in the log.  If the compilation is unsuccessful, the following message is displayed:

----Compilation has errors----

If compilation is successful, the following message is displayed:

Successfully compiled (filename).bar

The act of compiling a file converts an I.F. into a file of "mixed" format (it can start out as either "text" or "mixed;" it always ends up as "mixed").

Certain file information cannot be retrieved about the I.F. until it has been successfully compiled.

If you recompile an I.F. that is already actively being used as a schema for a data file in BARfly, you will be warned about the consequences of construct parallel loss (see section on copying and pasting between formats).  The data file needs to be reconciled with the new version of the I.F.  If any part of the data file cannot be reconciled, you will be asked if you wish to dump the file for a future manual reconcilation process.

Click here to learn more about implementation file format and organization.

Click here to learn more about implementation file syntax.


  See also: [Running BAR interfacial functions] [Running BAR I.F. functions] [File revalidation]


BARfly Help Copyright © 2009 Christopher Allen