eliminateSystemDependentCode
The eliminateSystemDependentCode build descriptor option indicates whether the EGL generator ignores code that will never run in the target system.
The eliminateSystemDependentCode build
descriptor option is meaningful only in relation to the sysVar.systemType system
variable. For example, the EGL generator does not process the following add statement
if you are generating for Windows™:
if (sysVar.systemType IS AIX)
add myRecord;
end
To avoid generating code that will never run in the target system,
take either of the following actions:
- Set the eliminateSystemDependentCode build
descriptor option to YES. In the current example, the add statement
is not generated if you set the eliminateSystemDependentCode build
descriptor option to YES and set the system build
descriptor option to something other than AIX®. Be aware, however, that the EGL generator
can eliminate system-dependent code only if the logical expression
(in this case,
sysVar.systemType IS AIX) is simple enough to evaluate at generation time. - Move the statements that you do not want to generate to a second
program; then, let the original program call the new program conditionally,
as in this example:
if (sysVar.systemType IS AIX) call myAddProgram (myRecord); end
Values
- NO
- Specifies that EGL generates code that does not run in the target system. Specify NO only if the output of the current generation will run in multiple systems.
- YES (the default value)
- Specifies that EGL only generates code that runs in the target system.