Page 1 of 1
PUIBNDRPG Compile time
Posted: Wed Sep 08, 2010 6:55 pm
by esdaled
When I compile a program using PUIBNDRPG it takes much longer for the program to compile. For example, program A takes about 10 seconds to compile normally, but takes over 2 minutes using PUIBNDRPG. Is this normal?
If I look at the compile job, it seems to be using very little CPU but spending a long time in procedure GETQUALIFIEDFILE in program PUI0001300.
Re: PUIBNDRPG Compile time
Posted: Fri Sep 10, 2010 9:22 am
by Rob
GETQUALIFIEDFILE is called once per copy source member line (/copy or /include) in your RPG source code. Do you have a large number of /copy or /include lines in your source?
Re: PUIBNDRPG Compile time
Posted: Fri Sep 10, 2010 10:57 am
by esdaled
The program in question has 12 copybooks, 1 of which includes a copybook.
The majority of our copybooks are prototypes (and their associated data structures) and few of the copybooks are snippets of calc specs.
Re: PUIBNDRPG Compile time
Posted: Fri Sep 10, 2010 3:01 pm
by Rob
The pre-processor loads all copybooks (recursively) into the main source member (in QTEMP) so it can pre-process all relevant code. In actual fact we could improve this by only loading C-Spec copybooks. We can look at this in a future release.