Bridging the Semantic Gap in Spacecraft Software: Model-Generated Versus Handwritten C Code
Translating behavioral models into deployable flight software often leaves a semantic gap regarding integration with the real-time operating system and the hardware. This paper presents a standards-based workflow that reduces this gap, alongside a quantitative assessment of the residual integration effort. A unified model, written in the Object Management Group Action Language for Foundational UML (ALF), is executed on the Foundational UML reference engine. It is then deterministically translated into C code and integrated with a thin manual platform layer. The approach is evaluated on the fault detection, isolation, and recovery process of an operational onboard computer, comparing the generated C code with its flight-proven handwritten counterpart. The generated code contains no statically detectable reliability defects (vs 41 in the reference), reduces cognitive complexity by 46%, and decreases the measured program-text footprint by 74%. The three monitor state machines were generated without any postgeneration modification, and classifying the remaining effort reveals that approximately 90% is theoretically automatable. Additionally, the study introduces a novel modeling pattern for timer-driven resumable command sequences, a behavior that ALF cannot natively express. These results confirm the effectiveness of model-based code generation for finite-state spacecraft software.
Authors
- Abderrahmane Seddjar (ORCID: https://orcid.org/0000-0001-9711-9814)
- Fayçal Bouchiba (ORCID: https://orcid.org/0009-0003-8201-5539)
- Youcef Bouziane (ORCID: https://orcid.org/0000-0001-7072-2576)
- Youcef Ghelamallah (ORCID: https://orcid.org/0000-0002-4823-6413)
- El-Habib Bensikaddour (ORCID: https://orcid.org/0000-0002-3654-9121)
- Amine Meghabber (ORCID: https://orcid.org/0000-0003-2314-7913)
Institutions
- Agence Spatiale Algérienne (DZ)
Publication Details
- Journal
- Journal of Aerospace Information Systems
- Published
- 2026-11-29
- DOI
- https://doi.org/10.2514/1.i011904
- Primary Topic
- Model-Driven Software Engineering Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00