计算机科学 > 程序设计语言
[提交于 2017年2月9日]
标题:Specialization of Generic Array Accesses After Inlining
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We have implemented an optimization that specializes type-generic array accesses after inlining of polymorphic functions in the native-code OCaml compiler. Polymorphic array operations (read and write) in OCaml require runtime type dispatch because of ad hoc memory representations of integer and float arrays. It cannot be removed even after being monomorphized by inlining because the intermediate language is mostly untyped. We therefore extended it with explicit type application like System F (while keeping implicit type abstraction by means of unique identifiers for type variables). Our optimization has achieved up to 21% speed-up of numerical programs.
提交历史
来自:EPTCS[v1] 2017年2月9日 星期四 00:00:00 UTC