The invention discloses an engine control-oriented worst execution
analysis method, which comprises the following steps of: determining a
processor model according to requirements of an engine
control system, and selecting a
static model and a worst
execution time analysis tool corresponding to the
processor model; analyzing the
software architecture, confirming a task scheduling mode and a task
time distribution scheme, and identifying the influence of the
software architecture on the worst
execution time; identifying target
machine environment factors including internal hardware configuration and external hardware configuration of the processor, and compiling link parameters; based on an identification result, configuring target
machine environment parameters in the worst
execution time analysis tool, and importing a target code of to-be-analyzed
software; in combination with an engine
control function and an application scene, identifying a worst
call tree path through
static analysis, performing actual test on the final worst scene in a software and hardware integration test environment, and verifying whether the final worst scene meets time performance requirements and task
time distribution in
software requirements or not; if not, iteratively adjusting the
software architecture or demand and then repeatedly executing the steps; the time security of the worst execution analysis result is confirmed through expert
peer review, and it is ensured that all potential execution paths and extra time are covered; according to the method, the possible worst path can be identified more efficiently and accurately.