Rate This Document
Findability
Accuracy
Completeness
Readability

64-Bit Running Mode Check

The tool identifies the 32-bit applications to be ported to the 64-bit platform and provides modification suggestions. It supports GCC 4.8.5 to GCC 10.3.0.

Command Function

Uses the terminal tool to check the running mode.

Syntax

1
devkit advisor run-mode [-h | --help] {-i INPUT_PATH | --input INPUT_PATH} {-c COMMAND | --command COMMAND} [-o OUTPUT_PATH | --output OUTPUT_PATH] [-l {0,1,2,3} | --log-level {0,1,2,3}] [-r {all,json,html,csv} | --report-type {all,json,html,csv}] [--set-timeout TIMEOUT]

Parameter Description

Table 1 Parameter description

Parameter

Option

Description

-h/--help

-

Obtains help information. This parameter is optional.

-i/--input

-

Path to the source code folder to be scanned. This parameter is mandatory.

-c/--command

-

Source code build command. This parameter is mandatory. Builds source code. If there are multiple build commands, separate them with semicolons (;) and enclose them with single quotation marks (') or double quotation marks ("). If a command contains spaces, enclose it with single or double quotation marks.

Example: "mkdir build;cd build;cmake ..;make"

NOTE:

The source code build command in the command line tool does not support variable setting and environment variable export.

Example: "CFLAGS='-O0 -g';make" or "export CFLAGS='-O0 -g';make"

-o/--output

-

Path for storing scan reports. By default, scan reports are stored in the current execution path. A report name is the format of Module-name_Timestamp. This parameter is optional.

-l/--log-level

0/1/2/3

Log level, which defaults to 1. This parameter is optional.
  • 0: DEBUG
  • 1: INFO
  • 2: WARNING
  • 3: ERROR

-r/--report-type

all/json/html/csv

Scan report format, which defaults to all. This parameter is optional.
  • all: generates reports in JSON, HTML, and CSV formats.
  • json: generates a report only in JSON format.
  • html: generates a report only in HTML format.
  • csv: generates a report only in CSV format.

--set-timeout

-

Timeout interval of a task, in minutes. If the execution duration exceeds the timeout interval, the task exits. This parameter is optional. By default, there is no timeout interval. The task will be executed until it is complete.

Example

In this example, the source code in the test005 folder is scanned, the build command is make, the scan report is stored in the /opt/DevKit directory, and the log level is DEBUG. Replace the example parameter values with the actual ones.

1
devkit advisor run-mode -i /opt/DevKit/workspace/devadmin/affinity/precheck/test005 -c make -o /opt/DevKit -l 0
The following information is displayed and a report is generated:
Executing 64-bit Run Mode Check task, please wait...
Current progress:  [0%]
Start to get the compile database
Current progress: ################################# [100%]
64-bit Run Mode Check task has been executed.
Environment cleared successfully.

Scanned time: 2025/04/08 09:38:17
Scan status: 64-bit mode check succeeded. You can modify and compile the application based on the report.

Configuration:
     Source code file path: /opt/DevKit/workspace/devadmin/affinity/precheck/test005
     Compile command: make
     Log level: debug
     Report type: all
     Timeout interval setting: The timeout period is not set.

Summary:
      5 source files to be modified have been scanned. There are 8 recommended modifications, 8 lines of code need to be modified.

For the detailed information, please check:
    /opt/DevKit/mode_check_20250408093817_3f82.json
    /opt/DevKit/mode_check_20250408093817_3f82.html
    /opt/DevKit/mode_check_20250408093817_3f82.csv

Output Report

Table 2 Output report parameters

Parameter

Description

Configuration

Displays the software source file path.

Source File to Be Modified

Displays information such as the path to the source file to be modified.