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

Direct link
Cite
Citation style
  • apa
  • harvard1
  • 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
Recompiling DSP applications to x86 using LLVM IR
Linköping University, Department of Computer and Information Science, Software and Systems. Linköping University, The Institute of Technology.
2014 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

This thesis describes the design and implementation of a prototype LLVM compiler backend, x86-64p, that compiles code written for a DSP architecture, FADER, into executables for the x86-64 architecture. The prototype takes LLVM IR generated for the FADER architecture and compiles x86-64 executables that emulate the properties of the DSP architecture, e.g. the multiple address spaces, the big-endianness and the support for fixed-point arithmetics. The backend is compared to a previous solution, C-Emu, that converts the DSP code to normal C code that is compiled using a normal x86-64 compiler. The two solutions are compared in terms of their correctness, debuggability and performance. The created prototype handles code containing low-level architectural assumptions better than C-Emu. However, the added emulation reduces the debuggability and performance of the generated executables. We have measured a runtime overhead of up to a factor of two compared to C-Emu. We also present some possible solutions for these issues.

Place, publisher, year, edition, pages
2014. , 114 p.
Keyword [en]
DSP compiler, LLVM, LLVM IR translation, endian emulation, adress spaces
National Category
Computer Engineering
Identifiers
URN: urn:nbn:se:liu:diva-111829ISRN: LIU-IDA/LITH-EX-A--14/052—SEOAI: oai:DiVA.org:liu-111829DiVA: diva2:760858
External cooperation
Ericsson
Subject / course
Computer Engineering
Supervisors
Examiners
Available from: 2014-11-10 Created: 2014-11-04 Last updated: 2014-11-10Bibliographically approved

Open Access in DiVA

fulltext(1132 kB)407 downloads
File information
File name FULLTEXT01.pdfFile size 1132 kBChecksum SHA-512
70f6bcb5bf90fb946c89a4e4a3d96e332556a61739dd1d043bf11c3973f329a1db038f0790e75465ea6da97c425b26bc670df2fafee5497a90dc7b4665dab5b3
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Stenberg, David
By organisation
Software and SystemsThe Institute of Technology
Computer Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 407 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

urn-nbn

Altmetric score

urn-nbn
Total: 343 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • harvard1
  • 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