0 votes
in Fortify code scanner by

Translation of C/C++ using Fortify:-

Command Line Syntax

The basic command to translate a single file is:

sourceanalyzer -b <build_id> [<sca_options>] <compiler> [<compiler_ options>] <file>.c

Parameters:

  • <compiler>: Name of the C/C++ compiler. Example: gcc, g++.
  • <sca_options>: Translation parameters to fortify SCA.
  • <compiler_options>: Parameters to C/C++ compiler.
  • <file>: Name of file to be translated.
Example

Let's try translating a file named helloworld.c.

Two step process to be followed is:

  • Compile
  • Translate

Compile with gcc Compiler:

gcc -I. -o helloworld.o -c helloworld.c

Translate:

sourceanalyzer -b <build_id> gcc -I. -o helloworld.o -c helloworld.c

Related questions

+1 vote
asked Jan 30, 2022 in Other by DavidAnderson
0 votes
asked May 27, 2020 in Fortify code scanner by Hodge
...