2012
DOI: 10.1007/978-3-642-32469-7_3
|View full text |Cite
|
Sign up to set email alerts
|

Certifying and Reasoning on Cost Annotations in C Programs

Abstract: We present a so-called labelling method to enrich a compiler in order to turn it into a "cost annotating compiler", that is, a compiler which can lift pieces of information on the execution cost of the object code as cost annotations on the source code. These cost annotations characterize the execution costs of code fragments of constant complexity. The first contribution of this paper is a proof methodology that extends standard simulation proofs of compiler correctness to ensure that the cost annotations on … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
22
0

Year Published

2012
2012
2016
2016

Publication Types

Select...
5
1
1

Relationship

3
4

Authors

Journals

citations
Cited by 11 publications
(22 citation statements)
references
References 6 publications
0
22
0
Order By: Relevance
“…In P, there are 2 annotations, written as 2 calls to a specific built-in function and used here to mark loop entries. 3 They are attached to program points 4 and 6 and will be transported throughout compilation. The CompCert compiler will place the comment "loop1" (resp.…”
Section: Overviewmentioning
confidence: 99%
See 1 more Smart Citation
“…In P, there are 2 annotations, written as 2 calls to a specific built-in function and used here to mark loop entries. 3 They are attached to program points 4 and 6 and will be transported throughout compilation. The CompCert compiler will place the comment "loop1" (resp.…”
Section: Overviewmentioning
confidence: 99%
“…To the best of our knowledge, the only work related to formal verification of loop bound calculation is [3], where the formal verification consists in using Hoare logic to verify that a program satisfies its specification including a cost annotation (expressed by an equality of the form global cost = constant value). A Frama-C plugin has been developed in order to experiment the approach on simple programs without nested loops.…”
Section: Related Workmentioning
confidence: 99%
“…), and cost-labelled statements: S, T ::= · · · | α : S Cost labels allow us to track some program points along the compilation chain. For further details we refer to [6].…”
Section: Labelling: a Quick Sketch Of The Previous Approachmentioning
confidence: 99%
“…The theoretical basis of the CerCo compiler has been outlined by Amadio et al [6], where in particular the labelling approach is described. Summarising, the proposal consists in 'decorating' the source code by inserting labels at key points.…”
Section: Introductionmentioning
confidence: 99%
“…A recent proposal by Amadio and Régis-Gianas [34] allows to reason on the the cost of higher-order functional programs by way of so-called cost-annotations, being sure that the actual behavior of compiled code somehow reflects the annotation. The logic in which cost annotations are written, however, is a higher-order Hoare logic.…”
Section: Related Workmentioning
confidence: 99%