Estimating Worst-Case Execution Time (WCET) is of utmost importance for developing Cyber-Physical and Safety-Critical Systems. The system's scheduler uses the estimated WCET to schedule each task of these systems, and failure may lead to catastrophic events. It is thus imperative to build provably reliable systems. WCET is available to us in the last stage of systems development when the hardware is available and the application code is compiled on it. Different methodologies measure the WCET, but none of them give early insights on WCET, which is crucial for system development. If the system designers overestimate WCET in the early stage, then it would lead to the overqualified system, which will increase the cost of the final product, and if they underestimate WCET in the early stage, then it would lead to financial loss as the system would not perform as expected. This paper estimates early WCET using Deep Neural Networks as an approximate predictor model for hardware architecture and compiler. This model predicts the WCET based on the source code without compiling and running on the hardware architecture. Our WCET prediction model is created using the Pytorch framework. The resulting WCET is too erroneous to be used as an upper bound on the WCET. However, getting these results in the early stages of system development is an essential prerequisite for the system's dimensioning and configuration of the hardware setup.
翻译:估计最坏情况执行时间(WCET)对于开发网络-物理和安全临界系统至关重要,该系统的调度员使用估计的WCET来安排这些系统的每一项任务,因此,必须建立可确认可靠的系统。当硬件可用并据此编制应用代码时,WCET在系统开发的最后阶段就可使用。不同的方法衡量WCET,但其中没有一个能对WCET提供早期的洞察力,而WCET对于系统开发至关重要。如果系统设计员在早期阶段高估WCET,那么它就会导致系统超合格,这将增加最终产品的成本,如果这些系统在早期阶段低估WCET,那么它就会造成财政损失,因为系统无法如预期的那样运作。 本文用深神经网络作为硬件结构和编集器的大致预测模型,对WCET进行早期洞察,但这一模型预测以源码为基础,而没有在硬件结构上进行汇编和运行。 我们WCET的高级预测结果是在硬件结构的早期结构上获得一个最终结果。