Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Compiler correctness » ?

Definition 7.12 University Computer Science — Year 3 · Chapitre 7 — Intermediate Code and Code Generation

A compiler CC from a source language with semantics S\mathcal{S} to a target language with semantics T\mathcal{T} is correct if for every source program PP it accepts and every input xx such that S(P,x)\mathcal{S}(P, x) is a normal termination with output oo and exit code kk, T(C(P),x)\mathcal{T}(C(P), x) is a normal termination with the same oo and kk. The square below then commutes: both paths from (P,x)(P, x) end at the same behaviour.

Lire dans le chapitre →