blob: eab53190158e11e278b23b063fb6f318dc79c49d [file] [log] [blame]
SCA2Amalthea Headless Tool
Launch via executable jar (uses the bnd launcher)
java -jar sca.jar <-pdir> [-astp] [-hdirlist] [-taskinfo] [-lockinfo] [-enableStructMember] [-xmlCallTreePath] [-outdir]
Options:
-hdirlist This optional parameter takes a list of directory paths that contain header files.The directory paths should be seperated by the path seperator ie ;
-taskinfo This optional parameter takes path of the task/isr information file
-lockinfo This optional parameter takes path of a csv file containing information of lock functions.
-enableStructMember This optional parameter takes a boolean value for reporting struct member accesses in amalthea model.
-xmlCallTreePath This optional parameter takes the path of the XMLCallTree.xml to be converted to amalthea model.
-outdir This optional parameter takes the path of the directory where the amalthea model has to be stored.
Mandatory Parameter:
-pdir Mandatory parameter.This parameter takes path of the root directory of the c project.
-astp Mandatory parameter if xmlCallTreePath option is not provided. This parameter takes path to the LLVM ASTParser executable.
Examples:
Displaying sca2Amalthea help
java -jar sca.jar -h
Generate amalthea model for all source files in project directory
java -jar sca.jar -pdir C:\\Temp\\project_dir -astp C:\\Desktop\\ast_dir
Generate amalthea model for all source files in project directory with task information
java -jar sca.jar -pdir C:\\Temp\\project_dir -astp C:\\Desktop\\ast_dir -taskinfo C:\\Temp\\project_dir\\task_info\\taskInfo.csv
Generate amalthea model from xmlCallTree.xml file
java -jar sca.jar -pdir C:\\Temp\\project_dir -xmlCallTreePath C:\\Temp\\project_dir\\_gen\\sca2Amalthea\\XMLCallTree.xml
Generate amalthea model for all source files in project directory with struct members enabled
java -jar sca.jar -pdir C:\\Temp\\project_dir -astp C:\\Desktop\\ast_dir -enableStructMember
Generate amalthea model for some header directory paths
java -jar sca.jar -pdir C:\\Temp\\project_dir -astp C:\\Desktop\\ast_dir -hdirlist C:\\Temp\\project_dir\\header_dir1;C:\\Temp\\project_dir\\header_dir2
Generate amalthea model for all source files in some output directory
java -jar sca.jar -pdir C:\\Temp\\project_dir -astp C:\\Desktop\\ast_dir -outdir C:\\Desktop\\outdir
Open the osgi shell
java -jar -Dosgi.console= sca.jar -pdir C:\\Temp\\project_dir -astp C:\\Desktop\\ast_dir