Forrest logo
back to context overview

opt

List of commands for opt:

  • opt:tldr:10257 opt: Output the Control Flow Graph of a function to a `.dot` file.
    $ opt ${-dot-cfg} -S ${filename-bc} -disable-output
    try on your machine
    explain this command
  • opt:tldr:1c183 opt: Optimize the program at level 2 and output the result to another file.
    $ opt -O2 ${filename-bc} -S -o ${path-to-output_file-bc}
    try on your machine
    explain this command
  • opt:tldr:f00e4 opt: Run an optimization or analysis on a bitcode file.
    $ opt -${passname} ${filename-bc} -S -o ${file_opt-bc}
    try on your machine
    explain this command
back to context overview