Iterating Pointers: Enabling Static Analysis for Loop-based Pointers


연구 분야: Strategies



학회: ACM Transactions on Architecture and Code Optimization, Volume 22, Issue 1


초록

Pointers are an integral part of C and other programming languages. They enable substantial flexibility from the programmer’s standpoint, allowing the user fine, unmediated control over data access patterns. However, accesses done through pointers are often hard to track and challenging to understand for optimizers, compilers, and sometimes, even for the developers themselves because of the direct memory access they provide. We alleviate this problem by exposing additional information to analyzers and compilers. By separating the concept of a pointer into a data container and an offset, we can optimize C programs beyond what other state-of-the-art approaches are capable of, in some cases even enabling auto-parallelization. Using this process, we are able to successfully analyze and optimize code from OpenSSL, the Mantevo benchmark suite, and the Lempel–Ziv–Oberhumer compression algorithm. We provide the only automatic approach able to find all parallelization opportunities in the HPCCG benchmark from the Mantevo suite the developers identified, and we even outperform the reference implementation by up to 18% as well as speed up the PBKDF2 algorithm implementation from OpenSSL by up to 11×.


Author Profile
Andrea Lepori

Dept. of Computer Science ETH Zurich Zurich Switzerland

Ethiopia
Author Profile
Alexandru Calotoiu

Dept. of Computer Science ETH Zurich Zurich Switzerland

Ethiopia
Author Profile
Torsten Hoefler

Dept. of Computer Science ETH Zurich Zurich Switzerland

Ethiopia

📄 논문 정보

발행 연도 2025년
인용수 0
출판 국가 Ethiopia
사이트 ACM
좋아요 수 0

연관 논문 목록 (110건)