Publication | Closed Access
Program analysis and code generation in an APL/370 compiler
44
Citations
9
References
1986
Year
EngineeringCompiler TechnologySoftware SystemsSoftware EngineeringSoftware AnalysisCompilersParallel ComputingDynamic CompilationProgramming LanguagesHigh-level Programming LanguageCompiler SupportCode GenerationComputer EngineeringComputer ScienceOptimizing CompilerSoftware DesignOperating SystemsApl Primitive FunctionsProgram AnalysisSoftware TestingFormal MethodsParallel ProgrammingApl/370 CompilerSystem Software
We have implemented an APL/370 compiler which accepts a subset of APL that includes most language features and a majority of APL primitive functions. It produces System/370 assembly code directly to be run independently of an interpreter. The compiler does not require variable declarations. Its front end, which is machine-independent, employs extensive type-shape analysis based on a type-shape calculus of the primitive functions and global dataflow analysis. Its back end does storage mapping, code generation for various primitive functions, and register management. For one-line functions, compiled code executes at 2–10 times the speed of the interpreter. On programs with many iterations, the execution time of the compiled code not only is dramatically better than that of interpretation, but is actually fairly close to that of FORTRAN. This removes the performance penalty of APL in computation-intensive applications.
| Year | Citations | |
|---|---|---|
Page 1
Page 1