|
In PowerBuilder 5.0, you have the option to compile your applications in machine code for increased performance. The code generation feature:
- Is available in 32-Bit environments (Windows 95 and Windows NT)
- Uses the Watcom C++ compiler technology
- Generates ANSI C code
- Converts PBDs into DLLs
To compile in machine code:
Select Project Painter Compilation Options>Machine Code
During development
When you develop your application, keep in mind that:
- Local and instance variables will perform faster than global and shared variables
- Even if your application will be distributed in machine code, you may want to generate it in native PowerBuilder code for faster testing
- In a 32-Bit environment, you can compile machine code for either 16- or 32-Bit deployment
At deployment
When you deliver your application, keep in mind that:
- A machine code executable is larger than a PowerBuilder code executable, but will run faster
- Machine code compiled applications still require the PowerBuilder runtime environment
- PowerBuilder generated DLLs cannot be called by external applications
|