The new option: -qmaxerr
ChristineLi 2700064EHM Visits (587)
When we code a large program and compile the large-sized code, sometimes we wait for a long time but get a list of errors instead of the executable file. How disappointing!
Is there a way to end the compilation to save our time when more errors than we could accept have been detected? The -qmaxerr option is designed to meet this requirement.
You can determine the error severity level that you can accept and specify the suboptions accordingly:
i: informational messages
l: language-level messages
w: warning messages
e: error messages
s: severe error messages.
For example, if the example.f contains more than one severe error and I want to shorten the compilation time when one severe error message is issued, I compile like this:
xlf example.f -qmaxerr=1:s
Within shorter time compared to the complete compilation, the compiler ends and issues the message for the first severe error as well as the following messages:
1521-003: (U) The number of errors has reached the limit of 1.
In this way, I do not have to wait for the whole code to be compiled but can continue modifying my code according to the error message, which saves my time and helps me correct my code step by step.
For details, please visit the information center.
From the author: Thanks Jia Lei Ma for her effort to review this blog