首页> 外国专利> Compiler back end calling predetermined front end routines that use effect and dependency indicators to provide information to the compiler to determine the validity of an optimization

Compiler back end calling predetermined front end routines that use effect and dependency indicators to provide information to the compiler to determine the validity of an optimization

机译:编译器后端调用使用效果和依赖项指示符的预定前端例程,以向编译器提供信息以确定优化的有效性

摘要

A compiler framework uses a generic "shell" and a generic back end (where the code generator is target-specific). The generic back end provides the functions of optimization, register and memory allocation, and code generation. The code generation function of the back end may be targeted for any of a number of computer architectures. A front end is tailored for each different source language, such as Cobol, Fortran, Pascal, C, C++, etc. The front end scans and parses the source code modules, and generates from them an intermediate language representation of the source code programs expressed in the source code. The intermediate language represents any of the source code languages in a universal manner, so the interface between the front end and back end is of a standard format, and need not be rewritten for each language- specific front end. A feature is a mechanism for representing effects and dependencies in the interface between front end and back end. An element has an effect if it writes to memory, and has a dependency if it reads from a location which some other node may write to. A mechanism which is independent of source language is provided for describing the effects of program execution.
机译:编译器框架使用通用的“外壳”和通用后端(其中代码生成器是特定于目标的)。通用后端提供优化,寄存器和内存分配以及代码生成的功能。后端的代码生成功能可以针对许多计算机体系结构中的任何一种。为每种不同的源语言(例如Cobol,Fortran,Pascal,C,C ++等)量身定制了一个前端。该前端扫描并解析源代码模块,并从中生成表示的源代码程序的中间语言表示形式在源代码中。中间语言以通用的方式表示任何源代码语言,因此前端和后端之间的接口具有标准格式,无需为每种特定于语言的前端重写。功能是一种机制,用于表示前端和后端之间的接口中的效果和依存关系。如果元素写入内存,则具有作用;如果从其他节点可能写入的位置读取,则具有依赖性。提供了一种独立于源语言的机制来描述程序执行的效果。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号