# Changeset 555

Ignore:
Timestamp:
Feb 17, 2011, 2:17:11 PM (8 years ago)
Message:

Resolved conflict, updated bibtex, finished bibliography, and llncs.cls updated to latest version.

Location:
Deliverables/D4.1/ITP-Paper
Files:
3 edited

Unmodified
Added
Removed
• ## Deliverables/D4.1/ITP-Paper/itp-2011.bib

 r551 @article { bate:wcet:2011, author = {Iain Bate and Usman Khan}, title = {{WCET} analysis of modern processors using multi-criteria optimisation}, journal = {Empirical Software Engineering}, pages = {5--28}, volume = {16}, issue = {1}, year = {2011} } @article { leroy:formal:2009, pages = {363--446}, year = {2009} } @inproceedings { yan:wcet:2008, author = {Jun Yan and Wei Zhang}, title = {{WCET} Analysis for Multi-Core Processors with Shared {L2} Instruction Caches}, booktitle = {Proceedings of the Fourteenth {IEEE} Symposium on Real-time and Embedded Technology and Applications ({RTAS 2008})}, pages = {80--89}, year = {2008} } @inproceedings { garrigue:programming:1998, author = {Jacques Garrigue}, title = {Programming with polymorphic variants}, booktitle = {The {ML} Workshop}, year = {1998} } @inproceedings { leijen:domain:1999, author = {Daan Leijen and Erik Meijer}, title = {Domain specific embedded compilers}, booktitle = {Proceedings of the Second Conference on Domain Specific Languages {(DSL 1999)}}, series = {{ACM SIGPLAN} Notices}, pages = {109--122}, volume = {2}, year = {1999} } @inproceedings { sarkar:semantics:2009, author = {Susmit Sarkar and Peter Sewell and Francesco Zappa Nardelli and Scott Owens and Tom Ridge and Thomas Braibant and Magnus O. Myreen and Jade Alglave}, @misc { oliboni:matita:2008, author = {Cosimo A. Oliboni}, title = {{Matita} come Supporto per Specifiche Eseguibili: Formalizzazione Interattiva dei Microcontroller a 8 bit {Freescale}}, institution = {Dipartimento di Scienze dell'Informazione, Universit\a di Bologna}, howpublished = {\url{http://matita.cs.unibo.it/library.shtml}}, year = {2008} } @misc { sdcc:2010, title = {Small Device {C} Compiler {(SDCC)} 3.0.0}, year = {2010}, key = {{SDCC}} } @misc { siemens:2011, title = {Siemens Semiconductor Group 8051 derivative instruction set}, howpublished = {\url{http://www.win.tue.nl/~aeb/comp/8051/instruction-set.pdf}}, year = {2011}, key = {{Siemens}} }
• ## Deliverables/D4.1/ITP-Paper/itp-2011.tex

 r554 \usepackage{fancybox} \usepackage{graphicx} \usepackage[colorlinks]{hyperref} \usepackage[utf8x]{inputenc} \usepackage{listings} \institute{Dipartimento di Scienze dell'Informazione, Universit\a di Bologna} \bibliographystyle{alpha} \bibliographystyle{plain} \begin{document} To what extent can you trust your compiler in preserving those properties? \end{itemize*} These questions, and others like them, motivate a current hot topic' in computer science research: \emph{compiler verification} (for instance~\cite{leroy:formal:2009, chlipala:verified:2010}, and many others). These questions, and others like them, motivate a current hot topic' in computer science research: \emph{compiler verification} (for instance~\cite{leroy:formal:2009,chlipala:verified:2010}, and many others). So far, the field has been focused on the first and last questions only. In particular, much attention has been placed on verifying compiler correctness with respect to extensional properties of programs, which are easily preserved during compilation; it is sufficient to completely preserve the denotational semantics of the input program. In the methodology proposed in CerCo we assume we are able to compute on the object code exact and realistic costs for sequential blocks of instructions. With modern processors, though possible~\cite{??,??,??}, it is difficult to compute exact costs or to reasonably approximate them. With modern processors, though possible (see~\cite{bate:wcet:2011,yan:wcet:2008} for instance), it is difficult to compute exact costs or to reasonably approximate them. This is because the execution of a program itself has an influence on the speed of processing. For instance, caching, memory effects and other advanced features such as branch prediction all have a profound effect on execution speeds. These are still widely used in embedded systems, and have the advantage of an easily predictable cost model due to the relative sparcity of features that they possess. In particular, we have fully formalised an executable formal semantics of a family of 8 bit Freescale Microprocessors~\cite{oliboni}, and provided a similar executable formal semantics for the MCS-51 microprocessor. In particular, we have fully formalised an executable formal semantics of a family of 8 bit Freescale Microprocessors~\cite{oliboni:matita:2008}, and provided a similar executable formal semantics for the MCS-51 microprocessor. The latter work is what we describe in this paper. The main focus of the formalisation has been on capturing the intensional behaviour of the processor. \end{figure} The formalization of MCS-51 must deal with bytes (8 bits), words (16 bits) but also with more exoteric quantities (7 bits, 3 bits, 9 bits). To avoid size mismatch bugs difficult to spot, we represent all of these quantities using bitvectors, i.e. fixed length vectors of booleans. The formalization of MCS-51 must deal with bytes (8 bits), words (16 bits) but also with more exoteric quantities (7 bits, 3 bits, 9 bits). To avoid size mismatch bugs difficult to spot, we represent all of these quantities using bitvectors, i.e. fixed length vectors of booleans. In our O'Caml emulator, we faked' bitvectors using phantom types implemented with polymorphic variants\cite{phantom_types_ocaml}, as in Figure~\ref{fig.ocaml.implementation.bitvectors}. From within the bitvector module (left column) bitvectors are just lists of bits and no guarantee is provided on sizes. However, the module's interface (right column) enforces the size invariants in the rest of the code. From within the bitvector module (left column) bitvectors are just lists of bits and no guarantee is provided on sizes. However, the module's interface (right column) enforces the size invariants in the rest of the code. In Matita, we are able to use the full power of dependent types to always work with vectors of a known size: The next instruction to be processed, indexed by the program counter, is fetched from code memory with \texttt{fetch}. An updated program counter, along with the concrete cost, in processor cycles for executing this instruction, is also returned. These costs are taken from a Siemen's data sheet for the MCS-51, and will likely vary across manufacturers and particular derivatives of the processor. These costs are taken from a Siemens Semiconductor Group data sheet for the MCS-51~\cite{siemens:2011}, and will likely vary across manufacturers and particular derivatives of the processor. \begin{lstlisting} definition fetch: Executability is another key difference between our work and~\cite{fox:trustworthy:2010}. Our formalisation is executable: applying the emulation function to an input state eventually reduces to an output state that already satisfies the appropriate conditions. This is because Matita is based on a logic that internalizes conversion. In~\cite{fox:trustworthy:2010} the authors provide an automation layer to derive single step theorems: if the processor is in a particular state that satisfies some preconditions, then after execution of an instruction it will reside in another state satisfying some postconditions. We do not need single step theorems of this form. This is because Matita is based on a logic that internalizes conversion. As a result, our formalisation is executable: applying the emulation function to an input state eventually reduces to an output state that already satisfies the appropriate conditions. Our main difficulties resided in the non-uniformity of an old 8-bit architecture, in terms of the instruction set, addressing modes and memory models.
• ## Deliverables/D4.1/ITP-Paper/llncs.cls

 r492 % LLNCS DOCUMENT CLASS -- version 2.14 (17-Aug-2004) % LLNCS DOCUMENT CLASS -- version 2.17 (12-Jul-2010) % Springer Verlag LaTeX2e support for Lecture Notes in Computer Science % %% \NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesClass{llncs}[2004/08/17 v2.14 \ProvidesClass{llncs}[2010/07/12 v2.17 ^^J LaTeX document class for Lecture Notes in Computer Science] % Options \DeclareOption{runningheads}{\let\if@runhead\iftrue} \let\if@openright\iftrue \let\if@openbib\iffalse \DeclareOption{openbib}{\let\if@openbib\iftrue} \LoadClass[twoside]{article} \RequirePackage{multicol} % needed for the list of participants, index \RequirePackage{aliascnt} \setlength{\textwidth}{12.2cm} \def\exercisename{Exercise} \def\figurename{Fig.} \def\keywordname{{\bf Key words:}} \def\keywordname{{\bf Keywords:}} \def\indexname{Index} \def\lemmaname{Lemma} \def\@dotsep{2} \let\phantomsection=\relax \def\hyperhrefextend{\ifx\hyper@anchor\@undefined\else {chapter.\thechapter}\fi} {}\fi} \def\addnumcontentsmark#1#2#3{% \addtocontents{#1}{\protect\contentsline{#2}{\protect\numberline {\thechapter}#3}{\thepage}\hyperhrefextend}} {\thechapter}#3}{\thepage}\hyperhrefextend}}% \def\addcontentsmark#1#2#3{% \addtocontents{#1}{\protect\contentsline{#2}{#3}{\thepage}\hyperhrefextend}} \addtocontents{#1}{\protect\contentsline{#2}{#3}{\thepage}\hyperhrefextend}}% \def\addcontentsmarkwop#1#2#3{% \addtocontents{#1}{\protect\contentsline{#2}{#3}{0}\hyperhrefextend}} \addtocontents{#1}{\protect\contentsline{#2}{#3}{0}\hyperhrefextend}}% \def\@adcmk[#1]{\ifcase #1 \or \or    \def\@gtempa{\addcontentsmark}% \or    \def\@gtempa{\addcontentsmarkwop}% \fi\@gtempa{toc}{chapter}} \def\addtocmark{\@ifnextchar[{\@adcmk}{\@adcmk[3]}} \fi\@gtempa{toc}{chapter}% } \def\addtocmark{% \phantomsection \@ifnextchar[{\@adcmk}{\@adcmk[3]}% } \def\l@chapter#1#2{\addpenalty{-\@highpenalty} \long\def\@makecaption#1#2{% \small \vskip\abovecaptionskip \sbox\@tempboxa{{\bfseries #1.} #2}% \@ifundefined{extrasgerman}{}{\addto\extrasgerman{\switcht@deutsch}}% }{\switcht@@therlang}% \providecommand{\keywords}[1]{\par\addvspace\baselineskip \noindent\keywordname\enspace\ignorespaces#1}% } \def\homedir{\~{ }} \clearheadinfo % %%% to avoid hyperref warnings \providecommand*{\toclevel@author}{999} %%% to make title-entry parent of section-entries \providecommand*{\toclevel@title}{0} % \renewcommand\maketitle{\newpage \phantomsection \refstepcounter{chapter}% \stepcounter{section}% \@ifundefined{c@#2}{\@latexerr{No theorem environment #2' defined}\@eha}% {\expandafter\@ifdefinable\csname #1\endcsname {\global\@namedef{the#1}{\@nameuse{the#2}}% {\newaliascnt{#1}{#2}% \expandafter\xdef\csname #1name\endcsname{#3}% \global\@namedef{#1}{\@spthm{#2}{\csname #1name\endcsname}{#4}{#5}}% \global\@namedef{#1}{\@spthm{#1}{\csname #1name\endcsname}{#4}{#5}}% \global\@namedef{end#1}{\@endtheorem}}}}
Note: See TracChangeset for help on using the changeset viewer.