This command reads a loaded project from a folder in the GPL project area and converts it into an internal representation that can be executed as a thread. During compilation, errors in the project files are detected and reported. After compilation, the project may be executed by using the Start command
Compile project_name
Prerequisites
The specified project must be present as a folder in the GPL project area. The project folder is normally created by the Load command, but may be created manually by a file-copy utility. The project may not be actively executing in a thread.
Parameters
project_name
The name of a loaded project to be compiled. This name must match exactly (including case) the name of the project folder in the GPL area, which is also the project name specified in the Project.gpr file.
Remarks
During compilation, information is displayed on the console that describes the compiler progress. The compiler makes three passes. The first pass resolves class and module symbol references, the second resolves all other symbol references, and the third generates internal executable code. If any pass generates errors, the remaining passes are not performed. The compilation must complete without errors in order for the compiled code to be executed.
Examples
Load/flash/projects/My_project
Compile My_project
02-01-2010 10:00:06: Project My_project, Begin compiler pass 1
02-01-2010 10:00:06: Project My_project, Begin compiler pass 2
02-01-2010 10:00:07: Project My_project, Begin compiler pass 3
Compile successful
See Also