Page 1 of 1

What can be the max compilation return code for a program?

Posted: Thu Sep 03, 2015 2:27 pm
by SuperRa
Hi,

What can be the max compilation return code for a program? I was not sure on the answer of this question. Interviewer said, you have to think logically but I was not able to answer the question. Does anyone of you know the answer then please share.

Re: What can be the max compilation return code for a progra

Posted: Thu Sep 03, 2015 4:43 pm
by enrico-sorichetti
You should have asked back ...
for what language ?
the info about the return code for any language compiler is in the manual for that language compiler
for COBOL the COBOL manuals,
for FORTRAN the FORTRAN manuals
for <anycompiler> the <anycompiler> manual

but usually the the max return code is 16 ( IIRC )

Re: What can be the max compilation return code for a progra

Posted: Thu Sep 03, 2015 6:06 pm
by Robert Sample
Generally:
0 means successful compile
4 means compile with warnings (program may execute but give incorrect results)
8 means compile with errors (program may execute but give incorrect results)
12 means compile with severe errors (compiler may not produce any output)
16 means compiler stopped executing

Re: What can be the max compilation return code for a program?

Posted: Tue Sep 08, 2015 2:11 pm
by SuperRa
It was for COBOL only. Thanks for the answer Robert.

Re: What can be the max compilation return code for a program?

Posted: Fri Sep 18, 2015 9:06 pm
by zprogrammer
Also it depends upon how some shops design/customize the products, I have seen places where 8 is regarded as success for compilation (Strange but true )

Re: What can be the max compilation return code for a program?

Posted: Mon Nov 16, 2015 2:11 pm
by SuperRa
Thanks for all the answers. Thank you!