SSA-based MATLAB-to-C compilation and optimization

dc.contributor.author Luís Cubal Reis en
dc.contributor.author João Bispo en
dc.contributor.author João Paiva Cardoso en
dc.date.accessioned 2018-01-16T15:18:26Z
dc.date.available 2018-01-16T15:18:26Z
dc.date.issued 2016 en
dc.description.abstract Many fields of engineering, science and finance use models that are developed and validated in high-level languages such as MATLAB. However, when moving to environments with resource constraints or portability challenges, these models often have to be rewritten in lower-level languages such as C. Doing so manually is costly and error-prone, but automated approaches tend to generate code that can be substantially less efficient than the handwritten equivalents. Additionally, it is usually difficult to read and improve code generated by these tools. In this paper, we describe how we improved our MATLAB-to-C compiler, based on the MATISSE framework, to be able to compete with handwritten C code. We describe our new IR and the most important optimizations that we use in order to obtain acceptable performance. We also analyze multiple C code versions to identify where the generated code is slower than the handwritten code and identify a few key improvements to generate code capable of outperforming handwritten C. We evaluate the new version of our compiler using a set of benchmarks, including the Disparity benchmark, from the San Diego Vision Benchmark Suite, on a desktop computer and on an embedded device. The achieved results clearly show the efficiency of the current version of the compiler. Copyright is held by the owner/author(s). Publication rights licensed to ACM. en
dc.identifier.uri http://repositorio.inesctec.pt/handle/123456789/6388
dc.identifier.uri http://dx.doi.org/10.1145/2935323.2935330 en
dc.language eng en
dc.relation 5550 en
dc.relation 7010 en
dc.relation 6527 en
dc.rights info:eu-repo/semantics/openAccess en
dc.title SSA-based MATLAB-to-C compilation and optimization en
dc.type conferenceObject en
dc.type Publication en
Files
Original bundle
Now showing 1 - 1 of 1
Thumbnail Image
Name:
P-00K-MQD.pdf
Size:
428.64 KB
Format:
Adobe Portable Document Format
Description: