Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-10044

Clarify placement of --opt_level=4 option with respect to run linker option in compiler guide

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Medium Medium

      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
      

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: