-
Enhancement
-
Resolution: Unresolved
-
Medium
-
Code Generation Tools
-
CODEGEN-8188
-
C2000_20.2.2.LTS
-
-
default
-
Move --opt_level=4 before --run_linker
The file stub.c is an empty one line program.
void main() {}
Build it with --opt_level=4 in the wrong place, mixed in with the linker options ...
% cl2000 stub.c % cl2000 --run_linker --opt_level=4 -c stub.obj -o stub.out <Linking> >> WARNING: more than one source file is specified; option --output_file is ignored [_level=4.] Fatal error: cannot open source file "_level=4" 1 catastrophic error detected in the compilation of "_level=4". Compilation terminated. >> Compilation failure >> Compilation failure fatal error: Failed linktime optimization >> Compilation failure