arXiv:2609.40141cs.PFSep 2026

Manuscript Offprint

arXiv:2609.40141

LLTA: A Simplicity-Oriented Open-Source WCET Analyser

Nils Hölscher, Kay Heider, Jian-Jia Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Deriving a safe upper bound on the worst-case execution time (WCET) of a real-time task is essential for hard real-time systems. Many WCET analysers exist, but they are either (i) closed source or (ii) do not provide a WCET for an existing microcontroller. Hence, it is difficult to obtain a trustworthy WCET bound for the binary that is flashed to an available embedded hardware platform and to observe whether the bound is safe.

To solve this, we present LLTA, an open-source WCET analyser for Commercial-Off-The-Shelf (COTS) microcontrollers. LLTA is designed based on the following goals: it is simple (G1), runs on real COTS hardware (G2), reports results that are unsound due to programming or device constraints (G3), and is available open-source without licensing complications (G4). LLTA generates WCETs for the ESP32-C6 and the MSP430(FR5994), which are broadly available. This paper systematically lays out our design decisions for LLTA with those goals in mind. To demonstrate its ease of use, we propose scenarios where LLTA can be used for lab exercises of real-time systems.

Keywords: Real-Time Systems, Real Time Operating Systems, Worst-Case Execution Time, Tool-Chain, Hardware, Teaching, Open Source

1 Introduction

Deriving the worst-case execution time (WCET) is necessary to ensure the timeliness of hard real-time tasks in cyber-physical systems. From the analytical perspective, the

WCET CiC_{i} of a task is merely a specified parameter. However, for hands-on engineering of real-time systems, this is a huge hurdle and usually the WCET is just measured. Designers, engineers, and researchers who are interested in building real-time systems should easily be able to compile their tasks and obtain a trustworthy WCET bound for the binary they are about to flash to an embedded hardware platform. To achieve such objectives, Commercial-Off-The-Shelf (COTS) platforms have to be targeted, rendering the work of measuring unnecessary, which takes up more time and might not even provide safe bounds. In the current hardware and software ecosystem, however, it is hard to find COTS platforms for which this loop can be closed: if a real-time tool-chain exists for a device at all, it is usually at least partially proprietary, and devices supported by an open-source WCET analyzer are scarce.

This scarcity is not due to the lack of static WCET research. Static WCET analysis has been developed since decades, but none of the tools discussed here fits the demand of the engineering loop sketched above. The industrial analyzer aiT (Ferdinand et al. 2001) is sound and supports real processors, but is closed source and priced for the certification market, which is a significant hurdle to get access to. Open research tools such as LLVMTA (Hahn et al. 2022), Heptane (Hardy et al. 2017) and OTAWA (Ballabriga et al. 2010) are built to prototype and evaluate novel WCET analysis methodologies. They target generic or user-described processor models rather than a particular chip one can buy, and LLVMTA even declares the modelling of real-world hardware an explicit non-goal. We discuss this landscape and how our goals differ in Section 2.

In this article we present LLTA, a WCET analyzer built exactly for simplicity and ease of use and the centrepiece of the effort of our group towards a complete, simple and open tool-chain for practical engineering of real-time systems. LLTA is inspired by LLVMTA (Hahn et al. 2022) and, like it, implements a top-down approach first, where the analysis operates as a white box inside the compiler. Concretely, LLTA is a modification of the LLVM (Lattner and Adve 2004) code generator LLC that injects timing-analysis passes into the ordinary CLANG/OPT/LLC flow. Since a top-down approach alone is not sufficient LLTA additionally reads the linked binary, in Executable and Linkable Format (ELF), bottom-up to recover the real instruction and library-call addresses, and it decodes binary code where a library routine is present only in the linked binary. Thus, LLTA is less agnostic about the top-down approach, and uses bottom-up when necessary to achieve its goals and can be seen as a hybrid analyzer.

LLTA targets two broadly available and affordable COTS micro-controller families, the Texas Instruments MSP430 (MSP430FR5994) and the Espressif ESP32-C6. Both target models are discussed in Section 5: the timing behaviour of the two devices was validated by measurements, and their undocumented instruction caches were reverse engineered. Restricting the targets to simple micro-controllers whose timing needs no pipeline model keeps both the analysis and the tool itself small. Crucially for fast prototyping, LLTA is honest about its own limits: every reported bound is either sound with respect to the measured timing models of Section 5 or explicitly flagged as unsound, e.g. when the program reaches a runtime routine whose cost LLTA cannot determine.

LLTA is an open-source tool for research and education and provides no guarantees for the bounds it provides. In summary, this article makes the following contributions:

• LLTA, an open-source LLVM-based WCET analyzer designed for simplicity,

https://github.com/tu-dortmund-ls12-rt/LLTA,

which verifies its analysis against a linked binary program that is flashed and reports every bound as sound or explicitly unsound (Sections 2 and 4);

  • measurement-validated timing models for two COTS devices, the MSP430FR5994 and the ESP32-C6, backed by a measurement and reverse-engineering effort (Section 5);

  • a case study on the Mälardalen benchmark suite (Gustafsson et al. 2010) comparing LLTA's bounds against cycle counts measured on both devices (Section 6).

  • a proposal to utilize LLTA in a real-time operating systems (RTOS) or general real-time systems course, for students to practice how to derive and optimize trustworthy WCET bounds from source codes, in Section 7.

The tool-chain effort LLTA belongs to further building blocks: TEACH (Hakert et al. 2024), an accessible case-study platform on COTS hardware based on FreeRTOS (Barry 2016), a machine-verified earliest-deadline-first (EDF) scheduler implementation for FreeRTOS (Kuhse et al. 2026), and SLIME (Hakert et al. 2026), a framework that extracts task-set models from compiled real-time operating system (RTOS) binaries.

The remainder of this article is organised as follows. Section 2 states LLTA's goals and contrasts its design philosophy with existing WCET tools. Section 3 recalls the WCET analysis methods LLTA builds on. Section 4 describes how LLTA builds, enriches and analyses its program graph. Section 5 introduces the two target devices and the measurement campaigns behind their timing models, Section 6 shows a case study of LLTA on the Mälardalen suite, Section 7 sketches how LLTA can be used in teaching, and Section 8 concludes the article and gives an outlook.

References (23)