A MATLAB subset to C compiler targeting embedded systems. (11th May 2016)
- Record Type:
- Journal Article
- Title:
- A MATLAB subset to C compiler targeting embedded systems. (11th May 2016)
- Main Title:
- A MATLAB subset to C compiler targeting embedded systems
- Authors:
- Bispo, João
Cardoso, João M. P. - Abstract:
- Summary: This paper describes MATISSE, a compiler able to translate a MATLAB subset to C targeting embedded systems. MATISSE uses LARA, an aspect‐oriented programming language, to specify additional information and transformations to the input MATLAB code, for example, insertion of code for initialization of variables, and specification of types and shapes of variables. The compiler is being developed bearing in mind flexibility, multitarget and multitoolchain support, allowing for the generation of several implementations in C from the same reference code in MATLAB. In this paper, we also present a number of techniques being employed in MATLAB to C compilation, such as element‐wise mapping operations, matrix views, weak types, and intrinsics. We validate these techniques using MATISSE and a set of representative benchmarks. More specifically, we evaluate the compiler with a set of 31 benchmarks using an embedded system board and a desktop computer. The results show speedups up to 1.8× by employing information provided by LARA aspects, when compared with C code generated without additional user information. When compared with the execution time of the original code running on MATLAB, the execution time of the generated C code achieved a geometric mean speedup of 13×. Copyright © 2016 John Wiley & Sons, Ltd.
- Is Part Of:
- Software, practice & experience. Volume 47:Number 2(2017)
- Journal:
- Software, practice & experience
- Issue:
- Volume 47:Number 2(2017)
- Issue Display:
- Volume 47, Issue 2 (2017)
- Year:
- 2017
- Volume:
- 47
- Issue:
- 2
- Issue Sort Value:
- 2017-0047-0002-0000
- Page Start:
- 249
- Page End:
- 272
- Publication Date:
- 2016-05-11
- Subjects:
- MATLAB -- C code generation -- source‐to‐source compilers -- aspect‐oriented programming -- LARA -- embedded systems
Computer software -- Periodicals
Computer programming -- Periodicals
Computer programs -- Periodicals
005.3 - Journal URLs:
- http://onlinelibrary.wiley.com/ ↗
- DOI:
- 10.1002/spe.2408 ↗
- Languages:
- English
- ISSNs:
- 0038-0644
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library DSC - 8321.453000
British Library DSC - BLDSS-3PM
British Library STI - ELD Digital store - Ingest File:
- 1739.xml