AeroCoder
Open the tools

DO-178C HANDBOOK · CONTENTS

DO-178C HANDBOOK

/

Development

Integration & Executable Object Code

Compiling, linking and loading; memory maps, compiler options and target integration.

Desk summary

  • 01DO-178C’s integration process (§5.4) is the build and load: compiling, assembling and linking the source into executable object code, and loading it (with any Parameter Data Item Files) into the target hardware.
  • 02The compile, link and load data — scripts, linker command files, options — are life-cycle data in their own right: controlled, reviewed and recorded in the configuration indexes.
  • 03Table A-5 objective 7, “Output of software integration process is complete and correct” (§6.3.5), is met by reviewing that data and analysing the link output and memory map: correct addresses, no overlaps, nothing missing.
  • 04Testing the resulting executable on the target, including hardware/software integration, is the job of Table A-6.
  • 05A build that cannot be repeated exactly by someone else, from the documented procedure on a clean machine, is not a certifiable build.

Intuition

The recipe matters as much as the ingredients

Two bakers with identical ingredients produce different cakes if one uses a different oven temperature. Source code is the ingredients; the compiler and linker options, the linker command file and the libraries are the recipe and the oven settings. Certify the ingredients but not the recipe, and you have certified a cake nobody can bake again.

Two meanings of “integration”

DO-178C uses the word in two places. In the development processes, integration means producing the executable object code and loading it into the target computer — Table A-2 objective 7, “Executable Object Code and Parameter Data Item Files, if any, are produced and loaded in the target computer”. In the verification processes, integration testing means progressively exercising software components together and with the hardware, covered by Table A-6 and described in Requirements-Based Testing. This topic is about the first meaning and its verification.

§5.4 expects the executable object code to be generated from the source code and the compiling and linking data, and the software to be loaded into the target for hardware/software integration. Problems found during integration feed back to the requirements, design or code processes through problem reports. The build instructions are recorded in the Software Configuration Index (§11.16), and the tools with their versions and settings in the Software Life Cycle Environment Configuration Index (§11.15).

Integration data and where it lives

ItemWhy it mattersUsually recorded in
Compiler, assembler, linker versionsA different version can generate different codeSECI
Compiler and linker optionsOptimisation, floating-point model, packing and include paths change behaviourSECI and build scripts, referenced by the SCI
Build scripts or makefilesDefine what is compiled and linked, and howUnder CM with the source; build instructions in the SCI
Linker command filePlaces code and data at addresses; defines stack and memory regionsUnder CM; reviewed with the memory map
Libraries and start-up codeBecome part of the airborne executable (CAST-21)SCI, with their own life-cycle data
Link mapEvidence of where everything actually wentBuild output archived with the release
Load procedures and integrity dataProve what is in the box matches what was builtSCI (load instructions)

Practitioner tip

Prove the build is repeatable

Before release, have someone who did not write the build procedure and does not normally run it rebuild the software on a clean, freshly configured machine following only the documented instructions. Compare the resulting executable with the release candidate byte for byte, or by CRC. If they differ, find out why before going further — timestamps embedded by the toolchain are a common, fixable cause.

The linker decides where every function, constant, variable and stack lives. Errors here — a section placed over a memory-mapped device, a stack that grows into data, a constant table left out — can pass a source review untouched. §6.3.5 asks for the compiling, linking and loading data and the memory map to be checked for exactly these problems: incorrect hardware addresses, memory overlaps and missing software components.

An illustrative memory map for a flight control computer

RegionAddress rangeContentsCheck
Boot flash0x0000_0000 – 0x0003_FFFFBoot loader, power-on self testMatches hardware map; not overwritten by application
Application flash0x0004_0000 – 0x003F_FFFFCode and constants (.text, .rodata), CRC tableSize within region with planned margin
Parameter data0x0040_0000 – 0x0040_FFFFParameter Data Item FileLoaded separately; layout agrees with the PDI definition
RAM0x2000_0000 – 0x2007_FFFF.data, .bss, stacks per taskNo overlaps; stack sizes from analysis plus margin
Memory-mapped I/O0x4000_0000 – 0x4000_FFFFARINC 429, discrete and A/D controllersNo code or data linked here

text

/* Fragment of a linker command file (GNU-style), illustrative only */
MEMORY
{
  APP_FLASH (rx)  : ORIGIN = 0x00040000, LENGTH = 0x003C0000
  RAM       (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00080000
}
SECTIONS
{
  .text   : { *(.text*) *(.rodata*) } > APP_FLASH
  .data   : { *(.data*) } > RAM AT > APP_FLASH   /* copied at start-up */
  .bss    : { *(.bss*)  } > RAM                  /* zeroed at start-up */
  .stacks : { . = ALIGN(8); *(.stack_ctrl) *(.stack_bit) } > RAM
}
  • —Address correctness: every region matches the hardware memory map in the hardware/software interface definition.
  • —No overlaps: sections, stacks and buffers do not share addresses unless deliberately designed (for example a partition-shared buffer).
  • —Completeness: every component in the SCI appears in the map, and nothing unexpected does — an unexpected library function is a sign of unrequired code.
  • —Initialisation: the start-up code copies initialised data and clears zero-initialised data as the design assumes.
  • —Margins: memory usage against the margins in the requirements, tracked through the programme.

Compiler and linker options

Options are part of the design of the binary. They should be chosen during planning, written into the code standard or build instructions, and changed only through configuration control with impact analysis. A change of optimisation level is a change to the executable object code even if no source line moved.

Option decisions teams have to defend

Conservative choice

▸Low or moderate optimisation, so object code stays traceable to source.
▸Strict standards-conformance mode and maximum warnings.
▸Deterministic floating-point model; no fast-math reordering.
▸The same options for formal testing and flight build.

What it costs to deviate

▸High optimisation: more Level A source-to-object analysis, harder debugging.
▸Relaxed warnings: latent defects slip through and auditors ask why.
▸Fast-math: results differ between host simulation and target.
▸Different test build: you must justify that results carry over to flight software.

Pitfall

Coverage measured on a different binary

Structural coverage is often measured on an instrumented build, while requirements-based tests for credit run on the flight build. That is acceptable only if the plans say so and an analysis shows the instrumentation does not change the behaviour being verified. Surprises here — different options, a different link order, an extra library — are a recurring finding at SOI 3 and SOI 4.

Loading and target-hardware integration

Loading is part of the development integration objective because the software only exists, as far as the aircraft is concerned, once it is in the target. Load procedures exist for the lab, the factory and, if the software is field-loadable, the aircraft. They should say how a complete load is confirmed, how incomplete or corrupt loads are detected, and what to do when a load fails. Aircraft data loaders commonly use the ARINC 615A protocol with a high-integrity CRC and part-number checks. See Field-Loadable & User-Modifiable Software.

  • —Hardware/software interface issues typically surface here: interrupt priorities, endianness and alignment of bus data, timing of A/D conversions, memory-mapped register access widths, watchdog timing and cache configuration.
  • —Patches — binary changes outside the normal build — are discouraged for certified software. Changes go back through source, build and verification; any exceptional use must be justified and verified.
  • —Inadequacies found while integrating (a design assumption the hardware does not honour, a timing budget that does not fit) are recorded as problem reports and fed back to requirements or design.

Verifying integration: Table A-5 objective 7

The verification objective for the integration process sits in Table A-5 as objective 7: “Output of software integration process is complete and correct”. It is described in §6.3.5. It is not a review of the source code — that is objectives 1 to 6 — but of what the build produced and of the data that drove it. It is met by review and analysis, not by test.

A typical integration review

01

Review the compile, link and load data

Build scripts, linker command files, option sets and load scripts against the build instructions, the SECI and the code standard’s tool constraints.

02

Repeat the build independently

Follow the documented procedure on a clean environment and compare the output with the release candidate.

03

Analyse compiler and linker messages

Every warning examined; accepted warnings listed and justified; no errors.

04

Analyse the memory map

Addresses against the hardware map, no overlaps, all components present, no unexpected symbols, stack and memory margins.

05

Confirm load integrity

Loaded image matches the built image (CRC or part-number read-back) on the actual target used for formal tests.

06

Record the evidence

Review records with versions, findings and dispositions, ready for SOI 3 and SOI 4.

DO-178C Table A-6

Testing of Outputs of Integration Process

#ObjectiveRefABCDOutputs
1

Executable Object Code complies with high-level requirements

Normal-range requirements-based tests against the high-level requirements.

6.4.aSoftware Verification Cases and Procedures (11.13); Software Verification Results (11.14); Trace Data (11.21)
2

Executable Object Code is robust with high-level requirements

Robustness tests: abnormal inputs and conditions handled as required.

6.4.bSoftware Verification Cases and Procedures (11.13); Software Verification Results (11.14); Trace Data (11.21)
3

Executable Object Code complies with low-level requirements

6.4.c·Software Verification Cases and Procedures (11.13); Software Verification Results (11.14); Trace Data (11.21)
4

Executable Object Code is robust with low-level requirements

6.4.d·Software Verification Cases and Procedures (11.13); Software Verification Results (11.14); Trace Data (11.21)
5

Executable Object Code is compatible with target computer

Testing is done on the target (or a justified equivalent) to catch hardware interaction errors.

6.4.eSoftware Verification Cases and Procedures (11.13); Software Verification Results (11.14)
applies with independence
applies
· not required

A:5 B:5 C:5 D:3

Note

Where Table A-6 takes over

Once the software is built and loaded, Table A-6 asks for the executable object code to be tested against the HLRs and LLRs, for normal and robustness behaviour, and for compatibility with the target computer (objective 5). Target compatibility testing is where integration problems that no review can find — interrupt latency, cache effects, bus timing — finally show up. Details are in Requirements-Based Testing.

What the auditor looks for

What reviewers ask about the build

Typical questions: show me the build instructions and let someone rebuild now; which compiler version and options were used for the tests you are claiming credit from; how do you know the binary you tested is the binary in the SCI; where is the memory map analysis; how were linker warnings dispositioned; are the compiler-supplied library functions in the map covered by requirements and tests?

Model-based development

Integration on a model-based project

DO-331 changes little here: generated code is still compiled, linked and loaded like any other. Some practical differences: the code generator often produces build files, so its configuration becomes part of the compile data; generated code has to be integrated with hand-written schedulers, I/O drivers and the RTOS, and those interfaces are where integration defects concentrate; and model-level simulation, software-in-the-loop and processor-in-the-loop runs are useful evidence for earlier objectives but do not replace building, loading and testing the real executable on the real target. Keep the model’s configuration settings (data types, rounding, sample times) consistent with the compiler options — the reference project records the full model configuration set in each design description for that reason.

Self-check

Which activity provides most of the evidence for Table A-5 objective 7, “Output of software integration process is complete and correct”?

Sources & further reading

  • DO-178C §5.4 (Software Integration Process), §6.3.5 (reviews and analyses of the outputs of the integration process), §6.4, §11.12, §11.15, §11.16; Annex A Tables A-2, A-5 and A-6
  • Rierson, Developing Safety-Critical Software (2013), ch. 8 (§8.4–§8.5) and ch. 9
  • CAST-21, Compiler-Supplied Libraries
  • ARINC Report 615A, Software Data Loader Using Ethernet Interface
  • FAA AC 20-115D (recognition of DO-178C)
  • Model-based DO-178C/DO-331 reference project (helicopter FCC): model configuration sets in the design descriptions

← Previous

Coding

Development

Next →

Traceability

Development

On this page

Two meanings of “integration”The build: compile, assemble and linkMemory maps and link analysisCompiler and linker optionsLoading and target-hardware integrationVerifying integration: Table A-5 objective 7