Progress
Programming
Handbook


Compile-time Execution

The RUN statement performs compile-time execution when Progress cannot find an existing r-code file that corresponds to the specified procedure. Because r-code is interpreted, there is no need to link an additional machine executable; the RUN statement can thus execute the procedure immediately after compiling it.

Compile-time execution has two main uses:

Rapid Prototyping and Testing

Rapid prototyping allows you to quickly complete a code and test cycle for a procedure or a whole application without any concern for compile-time or run-time optimizations. After you have filled in your application architecture, you can then fine tune it using the Application Compiler and other Progress tools and utilities.

Dynamic 4GL Code Generation

Dynamic code generation is an advanced technique that you can see at work in the Progress AppBuilder. From within any application that includes the Progress compiler, you can write 4GL code fragments to a file, execute the file as a procedure, and remove the file, all under application control.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095