• Home
  • Search
  • Automatic generation of fast optimizing code generators
  • Cite Icon14
  • https://doi.org/10.1145/53990.53998Copy DOI Icon

Automatic generation of fast optimizing code generators

  • Jun 1, 1988
  • C W Fraser +1 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

This paper describes a system that accepts compact specifications of an intermediate code and target machine and produces program code for an integrated code generator and peephole optimizer. A compiler for most of C uses this packa.ge. It emits code comparable to PCCI’S, but it runs over five times faster on preliminary benchmarks. This compiler also runs over twice as fast as a version of pcc2 with a hand-coded, VAX-specific code generator. The code generators are produced as follows. A programmer describes a naive code generator by means of a non-procedural specification. The programmer also prepares a machine description for a retargetable peephole optimizer [2]. These two systems are used together to compile a testbed, and the compiler records each peephole optimization as it is made. This record and the specification of the naive code generator are compiled into a fast, integrated code generator and optimizer. This production code generator then takes the place of the slower “training” version. The production code generator and optimizer are integrated to the point that the code to be generated is communicated from one to the other by encoding it in the program counter, which obviates most inter-phase communication costs. Interpretive peephole optimizers have been driven by traces from retargetable peephole optimizers [3] and integrated with interpretive code generators [4], but the current work is distinguished by the production of a hard-coded, optimizing code generator. Historically, retargetable code generators (i.e., those not largely rewritten for each new machine)

Similar Papers
  • Conference Article

Extension of Context Free Grammar for Intermediate Code and Peephole Optimization Rule Parsers

  • Feb 01, 2015
  • Chirag H Bhatt +1
  • Preprint Article

Enhancing Code LLMs with Reinforcement Learning in Code Generation: A Survey

  • Jan 31, 2025
  • Qeios
  • Yangfan He +3
  • Conference Article
  • Citations1

Peephole optimization as a targeting and coupling tool

  • Jan 01, 1989
  • V H Allan
  • Research Article
  • Citations1

AI-Powered Code Generation Evaluating the Effectiveness of Large Language Models (LLMs) in Automated Software Development

  • Mar 31, 2023
  • Journal of Artificial Intelligence & Cloud Computing
  • Ravikanth Konda
  • Conference Article
  • Citations4

An intermediate language for source and target independent code optimization

  • Jan 01, 1979
  • Dennis J Frailey
  • Research Article
  • Citations135

Retargetable Code Generation Based on Structural Processor Description

  • Jan 01, 1998
  • Design Automation for Embedded Systems
  • Rainer Leupers +1
  • Research Article
  • Citations5

Towards compositional and generative tensor optimizations

  • Oct 23, 2017
  • ACM SIGPLAN Notices
  • Adilla Susungi +7
  • Conference Article
  • Citations5

Design and implementation in Ada of a runtime task supervisor

  • Oct 06, 1982
  • Edward Falis
  • Book Chapter
  • Citations21

Code Optimization by Integer Linear Programming

  • Jan 01, 1999
  • Daniel Kästner +1
  • Conference Article
  • Citations22

Integrating code generation and optimization

  • Jul 01, 1986
  • Christopher W Fraser +1
  • Supplementary Content

AI Agents: Synchronous vs Asynchronous Coding Agents Benefits Comparison A Comprehensive Analysis of Architecture Paradigms in Autonomous Code Generation Systems

  • Sep 09, 2025
  • Surya Rao Rayarao +1
  • Research Article
  • Citations4

Finite-state code generation

  • May 01, 1999
  • ACM SIGPLAN Notices
  • Christopher W Fraser +1
  • Research Article
  • Citations58

Instruction scheduling for instruction level parallel processors

  • Jan 01, 2001
  • Proceedings of the IEEE
  • P Faraboschi +2
  • Conference Article
  • Citations28

Code reuse in an optimizing compiler

  • Oct 01, 1996
  • Ali-Reza Adl-Tabatabai +2
  • Book Chapter
  • Citations10

FCG: A code generator for lazy functional languages

  • Jan 01, 1992
  • Koen Langendoen +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.