1 | \documentclass[a4paper]{llncs} |
---|

2 | \usepackage{algpseudocode} |
---|

3 | \usepackage{alltt} |
---|

4 | \usepackage{amsfonts} |
---|

5 | \usepackage[british]{babel} |
---|

6 | \usepackage{hyperref} |
---|

7 | \usepackage[utf8]{inputenc} |
---|

8 | \usepackage{listings} |
---|

9 | |
---|

10 | \renewcommand{\verb}{\lstinline} |
---|

11 | \def\lstlanguagefiles{lst-grafite.tex} |
---|

12 | \lstset{language=Grafite} |
---|

13 | |
---|

14 | \begin{document} |
---|

15 | |
---|

16 | \mainmatter |
---|

17 | \title{On the correctness of a branch displacement algorithm\thanks{Research supported by the CerCo project, within the Future and Emerging Technologies (FET) programme of the Seventh Framework Programme for Research of the European Commission, under FET-Open grant number 243881}} |
---|

18 | \author{Jaap Boender\inst{1} \and Claudio Sacerdoti Coen\inst{2}} |
---|

19 | \institute{Foundations of Computing Group\\Department of Computer Science\\School of Science and Technology\\Middlesex University, London, UK\\ |
---|

20 | \email{J.Boender@mdx.ac.uk} |
---|

21 | \and |
---|

22 | Dipartimento di Scienze dell'Informazione,\\ |
---|

23 | Universit\`a degli Studi di Bologna, Italy\\ |
---|

24 | \email{sacerdot@cs.unibo.it}} |
---|

25 | |
---|

26 | \maketitle |
---|

27 | |
---|

28 | \begin{abstract} |
---|

29 | The branch displacement problem is a well-known problem in assembler design. |
---|

30 | It revolves around the feature, present in several processor families, of |
---|

31 | having different instructions, of different sizes, for jumps of different |
---|

32 | displacements. The problem, which is provably NP-hard, is then to select the |
---|

33 | instructions such that one ends up with the smallest possible program. |
---|

34 | |
---|

35 | During our research with the CerCo project on formally verifying a C compiler, |
---|

36 | we have implemented and proven correct an algorithm for this problem. In this |
---|

37 | paper, we discuss the problem, possible solutions, our specific solutions and |
---|

38 | the proofs. |
---|

39 | |
---|

40 | \keywords{formal verification, assembler, branch displacement optimisation} |
---|

41 | \end{abstract} |
---|

42 | |
---|

43 | \input{problem} |
---|

44 | \input{algorithm} |
---|

45 | \input{proof} |
---|

46 | \input{conclusion} |
---|

47 | |
---|

48 | \clearpage |
---|

49 | \bibliography{biblio} |
---|

50 | \bibliographystyle{splncs03} |
---|

51 | |
---|

52 | \end{document} |
---|