基于源代码迁移的编译器优化方法研究.
Saved in:
| Title: | 基于源代码迁移的编译器优化方法研究. |
|---|---|
| Alternate Title: | Research on compiler optimization methods based on source code migration. |
| Authors: | 周 放1,2 735672985@qq.com, 刘茂福1,2, 李珊枝3 |
| Source: | Computer Engineering & Science / Jisuanji Gongcheng yu Kexue. Oct2025, Vol. 47 Issue 10, p1890-1900. 11p. |
| Subjects: | Deep learning, Compilers (Computer programs), Mathematical optimization, Program transformation, Flowgraphs |
| Abstract (English): | Compiler optimization aims to enhance the efficiency of code execution on target platforms by applying a series of transformations to the intermediate representation (IR) language. Traditional methods typically rely on machine learning to analyze IR features and predict the optimal combination of LLVM compiler optimization passes. However, these methods are limited by their reliance on existing compiler optimization strategies and insufficient use of global information, which limits their scalability. This study adopts deep learning to automatically translate function-level IR from an unoptimized state to the O2 optimization level, treating this optimization process as a translation task. By integrating a dense data flow graph (DDFG), this method is able to extract the global structural information from the IR code, thereby guiding the model to learn code semantics more comprehensively. Experiments using the Transformer model demonstrate that this method can effectively train IR at the O2 level, and 86.15% of the function-level optimized code can execute correctly on the compiler while ensuring semantic integrity. [ABSTRACT FROM AUTHOR] |
| Abstract (Chinese): | 编译器优化旨在通过在中间代码IR语言上进行一系列变换,提高代码在目标平台上的运行 效率。传统方法通常依赖机器学习来分析IR特征,并预测LLVM 编译器优化通道的最佳组合。然而,这 些方法因受限于编译器现有优化策略和对全局信息的有限利用,其扩展性受限。采用深度学习自动将函 数级IR从未优化状态转换至O2级别优化,并将此优化过程视为翻译任务。通过引入密集数据流图 DDFG,能够提取IR代码的全局结构信息,从而引导模型更全面地学习代码语义。使用Transformer模 型进行的实验表明,所提方法的模型能在O2级别有效训练IR,且86.15%的函数级优化代码能在保证语 义完整性的同时,在编译器上正确执行。 [ABSTRACT FROM AUTHOR] |
| Copyright of Computer Engineering & Science / Jisuanji Gongcheng yu Kexue is the property of Computer Engineering & Science and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.) | |
| Database: | Engineering Source |
| FullText | Links: – Type: pdflink Text: Availability: 0 |
|---|---|
| Header | DbId: egs DbLabel: Engineering Source An: 189378400 AccessLevel: 6 PubType: Academic Journal PubTypeId: academicJournal PreciseRelevancyScore: 0 |
| IllustrationInfo | |
| Items | – Name: Title Label: Title Group: Ti Data: 基于源代码迁移的编译器优化方法研究. – Name: TitleAlt Label: Alternate Title Group: TiAlt Data: Research on compiler optimization methods based on source code migration. – Name: Author Label: Authors Group: Au Data: <searchLink fieldCode="AR" term="%22周+放%22">周 放</searchLink><relatesTo>1,2</relatesTo><i> 735672985@qq.com</i><br /><searchLink fieldCode="AR" term="%22刘茂福%22">刘茂福</searchLink><relatesTo>1,2</relatesTo><br /><searchLink fieldCode="AR" term="%22李珊枝%22">李珊枝</searchLink><relatesTo>3</relatesTo> – Name: TitleSource Label: Source Group: Src Data: <searchLink fieldCode="JN" term="%22Computer+Engineering+%26+Science+%2F+Jisuanji+Gongcheng+yu+Kexue%22">Computer Engineering & Science / Jisuanji Gongcheng yu Kexue</searchLink>. Oct2025, Vol. 47 Issue 10, p1890-1900. 11p. – Name: Subject Label: Subjects Group: Su Data: <searchLink fieldCode="DE" term="%22Deep+learning%22">Deep learning</searchLink><br /><searchLink fieldCode="DE" term="%22Compilers+%28Computer+programs%29%22">Compilers (Computer programs)</searchLink><br /><searchLink fieldCode="DE" term="%22Mathematical+optimization%22">Mathematical optimization</searchLink><br /><searchLink fieldCode="DE" term="%22Program+transformation%22">Program transformation</searchLink><br /><searchLink fieldCode="DE" term="%22Flowgraphs%22">Flowgraphs</searchLink> – Name: Abstract Label: Abstract (English) Group: Ab Data: Compiler optimization aims to enhance the efficiency of code execution on target platforms by applying a series of transformations to the intermediate representation (IR) language. Traditional methods typically rely on machine learning to analyze IR features and predict the optimal combination of LLVM compiler optimization passes. However, these methods are limited by their reliance on existing compiler optimization strategies and insufficient use of global information, which limits their scalability. This study adopts deep learning to automatically translate function-level IR from an unoptimized state to the O2 optimization level, treating this optimization process as a translation task. By integrating a dense data flow graph (DDFG), this method is able to extract the global structural information from the IR code, thereby guiding the model to learn code semantics more comprehensively. Experiments using the Transformer model demonstrate that this method can effectively train IR at the O2 level, and 86.15% of the function-level optimized code can execute correctly on the compiler while ensuring semantic integrity. [ABSTRACT FROM AUTHOR] – Name: Abstract Label: Abstract (Chinese) Group: Ab Data: 编译器优化旨在通过在中间代码IR语言上进行一系列变换,提高代码在目标平台上的运行 效率。传统方法通常依赖机器学习来分析IR特征,并预测LLVM 编译器优化通道的最佳组合。然而,这 些方法因受限于编译器现有优化策略和对全局信息的有限利用,其扩展性受限。采用深度学习自动将函 数级IR从未优化状态转换至O2级别优化,并将此优化过程视为翻译任务。通过引入密集数据流图 DDFG,能够提取IR代码的全局结构信息,从而引导模型更全面地学习代码语义。使用Transformer模 型进行的实验表明,所提方法的模型能在O2级别有效训练IR,且86.15%的函数级优化代码能在保证语 义完整性的同时,在编译器上正确执行。 [ABSTRACT FROM AUTHOR] – Name: AbstractSuppliedCopyright Label: Group: Ab Data: <i>Copyright of Computer Engineering & Science / Jisuanji Gongcheng yu Kexue is the property of Computer Engineering & Science and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract.</i> (Copyright applies to all Abstracts.) |
| PLink | https://search.ebscohost.com/login.aspx?direct=true&site=eds-live&db=egs&AN=189378400 |
| RecordInfo | BibRecord: BibEntity: Identifiers: – Type: doi Value: 10.3969/j.issn.1007-130X.2025.10.017 Languages: – Code: chi Text: Chinese PhysicalDescription: Pagination: PageCount: 11 StartPage: 1890 Subjects: – SubjectFull: Deep learning Type: general – SubjectFull: Compilers (Computer programs) Type: general – SubjectFull: Mathematical optimization Type: general – SubjectFull: Program transformation Type: general – SubjectFull: Flowgraphs Type: general Titles: – TitleFull: 基于源代码迁移的编译器优化方法研究. Type: main BibRelationships: HasContributorRelationships: – PersonEntity: Name: NameFull: 周 放 – PersonEntity: Name: NameFull: 刘茂福 – PersonEntity: Name: NameFull: 李珊枝 IsPartOfRelationships: – BibEntity: Dates: – D: 01 M: 10 Text: Oct2025 Type: published Y: 2025 Identifiers: – Type: issn-print Value: 1007130X Numbering: – Type: volume Value: 47 – Type: issue Value: 10 Titles: – TitleFull: Computer Engineering & Science / Jisuanji Gongcheng yu Kexue Type: main |
| ResultId | 1 |