Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Compiler correctness?

Definition 7.12 University Computer Science — Year 3 · Capítulo 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.

Ler no capítulo →