使用位真数据流分析处理器特定的源代码优化

H. Falk, J. Wagner, André Schaefer
{"title":"使用位真数据流分析处理器特定的源代码优化","authors":"H. Falk, J. Wagner, André Schaefer","doi":"10.1109/ESTMED.2006.321286","DOIUrl":null,"url":null,"abstract":"Nowadays, key characteristics of a processor's instruction set are only exploited in high-level languages by using inline assembly or compiler intrinsics. Inserting intrinsics into the source code is up to the programmer, since only few automatic approaches exist. Additionally, these approaches base on simple code pattern matching strategies. This paper presents techniques for processor-specific code analysis and optimization at the source-level. It is shown how a bit-true dataflow analysis is made applicable for source code analysis for the TI C6x DSPs for the very first time. Based on this bit-true analysis, fully automated optimizations superior to conventional pattern matching techniques are presented which optimize saturated arithmetic, reduce bitwidths of variables and exploit SIMD data processing within source codes. The application of our implemented algorithms to complex real-life codes leads to speed-ups between 33%-48% for the optimization of saturated arithmetic, and up to 16% after SIMD optimization","PeriodicalId":266183,"journal":{"name":"2006 IEEE/ACM/IFIP Workshop on Embedded Systems for Real Time Multimedia","volume":"31 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2006-10-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":"{\"title\":\"Use of a Bit-true Data Flow Analysis for Processor-Specific Source Code Optimization\",\"authors\":\"H. Falk, J. Wagner, André Schaefer\",\"doi\":\"10.1109/ESTMED.2006.321286\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Nowadays, key characteristics of a processor's instruction set are only exploited in high-level languages by using inline assembly or compiler intrinsics. Inserting intrinsics into the source code is up to the programmer, since only few automatic approaches exist. Additionally, these approaches base on simple code pattern matching strategies. This paper presents techniques for processor-specific code analysis and optimization at the source-level. It is shown how a bit-true dataflow analysis is made applicable for source code analysis for the TI C6x DSPs for the very first time. Based on this bit-true analysis, fully automated optimizations superior to conventional pattern matching techniques are presented which optimize saturated arithmetic, reduce bitwidths of variables and exploit SIMD data processing within source codes. The application of our implemented algorithms to complex real-life codes leads to speed-ups between 33%-48% for the optimization of saturated arithmetic, and up to 16% after SIMD optimization\",\"PeriodicalId\":266183,\"journal\":{\"name\":\"2006 IEEE/ACM/IFIP Workshop on Embedded Systems for Real Time Multimedia\",\"volume\":\"31 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2006-10-26\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"3\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2006 IEEE/ACM/IFIP Workshop on Embedded Systems for Real Time Multimedia\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/ESTMED.2006.321286\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2006 IEEE/ACM/IFIP Workshop on Embedded Systems for Real Time Multimedia","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ESTMED.2006.321286","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

摘要

目前,处理器指令集的关键特性只能在高级语言中通过使用内联汇编或编译器的内在特性来实现。在源代码中插入内在特性取决于程序员,因为只有很少的自动方法存在。此外,这些方法基于简单的代码模式匹配策略。本文介绍了在源代码级别进行特定于处理器的代码分析和优化的技术。它首次展示了位真数据流分析如何适用于TI C6x dsp的源代码分析。基于这种位真分析,提出了优于传统模式匹配技术的全自动优化,优化了饱和算法,减少了变量的位宽,并在源代码中利用了SIMD数据处理。将我们实现的算法应用于复杂的现实代码中,饱和算法优化后的速度提高了33%-48%,SIMD优化后的速度提高了16%
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Use of a Bit-true Data Flow Analysis for Processor-Specific Source Code Optimization
Nowadays, key characteristics of a processor's instruction set are only exploited in high-level languages by using inline assembly or compiler intrinsics. Inserting intrinsics into the source code is up to the programmer, since only few automatic approaches exist. Additionally, these approaches base on simple code pattern matching strategies. This paper presents techniques for processor-specific code analysis and optimization at the source-level. It is shown how a bit-true dataflow analysis is made applicable for source code analysis for the TI C6x DSPs for the very first time. Based on this bit-true analysis, fully automated optimizations superior to conventional pattern matching techniques are presented which optimize saturated arithmetic, reduce bitwidths of variables and exploit SIMD data processing within source codes. The application of our implemented algorithms to complex real-life codes leads to speed-ups between 33%-48% for the optimization of saturated arithmetic, and up to 16% after SIMD optimization
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信