Overview of compilation

 

Overview of C# compilation

Compilation consists of producing assembly files (executable or library files) from C# source files previously generated, through the production of a makefile file.

 
Compilation is run either directly on a component or on a C# makefile work product created on a component.


Compilation can be run:

·         from the context menu available on C# makefile work products on components

·         from the toolbar, by selecting a component and clicking on the  Compile" icon.

 

For a component, the generated makefile recursively compiles all the referenced package's files.

 

 

Introduction to C# makefile work products

In order to run compilation operations, a C# makefile work product has to be created. C# makefile work products can only be created for components.

 

In Objecteering, C# makefile work products, otherwise known as C# compilation work products, provide the commands used to:

·         Compile

·         Recompile all compiled files

·         Clear compiled files

·         Generate the makefile

·         Visualize the makefile

·         Generate and compile

 

 

C# makefile work products are created through the window shown in Figure 41 below.

 

Figure 41. The C# makefile work product creation window

 

Key:

·         "Name": This field is used to specify the name of the C# makefile work product.

·         "Compilation path": This field is used to specify the root directory for the generation of assembly files.

 

 

Overview of C# makefile work product commands

Objecteering C# Developer provides six commands available on C# makefile work products, as shown in Figure 42 below.

 

Figure 42. Commands available from a C# makefile work product

 

 

The ... command

is used to ...

Clear compiled files

clear all compiled files.

Compile

generate the assembly files from the C# source files generated since the last compilation.

Recompile all

regenerate all the assembly files generated from the C# source files.

Generate the makefile

generate a makefile file to compile C# source files into assembly files.

Generate and compile

generate a makefile file to compile C# source files into assembly files and then launch the compilation operation.

Visualize the makefile

visualize a generated makefile.