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 with gcc Compiler:
gcc -I. -o helloworld.o -c helloworld.c
Translate:
sourceanalyzer -b <build_id> gcc -I. -o helloworld.o -c helloworld.c