liu.seSearch for publications in DiVA
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Integrated Code Generation
Linköping University, Department of Computer and Information Science. Linköping University, The Institute of Technology. (Pelab)
2011 (English)Doctoral thesis, monograph (Other academic)
Abstract [en]

Code generation in a compiler is commonly divided into several phases: instruction selection, scheduling, register allocation, spill code generation, and, in the case of clustered architectures, cluster assignment. These phases are interdependent; for instance, a decision in the instruction selection phase affects how an operation can be scheduled. We examine the effect of this separation of phases on the quality of the generated code. To study this we have formulated optimal methods for code generation with integer linear programming; first for acyclic code and then we extend this method to modulo scheduling of loops. In our experiments we compare optimal modulo scheduling, where all phases are integrated, to modulo scheduling where instruction selection and cluster assignment are done in a separate phase. The results show that, for an architecture with two clusters, the integrated method finds a better solution than the non-integrated method for 39% of the instances.

Our algorithm for modulo scheduling iteratively considers schedules with increasing number of schedule slots. A problem with such an iterative method is that if the initiation interval is not equal to the lower bound there is no way to determine whether the found solution is optimal or not. We have proven that for a class of architectures that we call transfer free, we can set an upper bound on the schedule length. I.e., we can prove when a found modulo schedule with initiation interval larger than the lower bound is optimal.

Another code generation problem that we study is how to optimize the usage of the address generation unit in simple processors that have very limited addressing modes. In this problem the subtasks are: scheduling, address register assignment and stack layout. Also for this problem we compare the results of integrated methods to the results of non-integrated methods, and we find that integration is beneficial when there are only a few (1 or 2) address registers available.

Place, publisher, year, edition, pages
Linköping: Linköping University Electronic Press , 2011. , p. 169
Series
Linköping Studies in Science and Technology. Dissertations, ISSN 0345-7524 ; 1375
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:liu:diva-67471ISBN: 978-91-7393-147-2 (print)OAI: oai:DiVA.org:liu-67471DiVA, id: diva2:416671
Public defence
2011-06-07, Visionen, Hus B, Campus Valla, Linköpings universitet, Linköping, 13:15 (English)
Opponent
Supervisors
Available from: 2011-05-12 Created: 2011-04-13 Last updated: 2019-12-19Bibliographically approved

Open Access in DiVA

Integrated Code Generation(875 kB)2799 downloads
File information
File name FULLTEXT01.pdfFile size 875 kBChecksum SHA-512
9e895ec4fe09f01bf1c39c47393810c37c3b95321fb91663b2dae335059c36b9dda26efc466d01d5ad6be8b6b29bfe1aa6665b2d766d0e03bb48488eb8beda23
Type fulltextMimetype application/pdf
cover(189 kB)111 downloads
File information
File name COVER01.pdfFile size 189 kBChecksum SHA-512
ac3afc1584dab44b10efef9440a40f26e22d83b02ee690bb858a16fc293b41a032bb8f76b71fb2f2e216cc2d186338945c9a60e7bf3aa34ceece2fe823515c6f
Type coverMimetype application/pdf
Order online >>

Authority records

Eriksson, Mattias

Search in DiVA

By author/editor
Eriksson, Mattias
By organisation
Department of Computer and Information ScienceThe Institute of Technology
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 2799 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

isbn
urn-nbn

Altmetric score

isbn
urn-nbn
Total: 1930 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • oxford
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf