Loading...
Please wait, while we are loading the content...
Similar Documents
Compiler Driven Code Comments and Refactoring
| Content Provider | Semantic Scholar |
|---|---|
| Author | Larsen, Per Ladelsky, Razya Karlsson, Sven Zaks, Ayal |
| Copyright Year | 2011 |
| Abstract | Helping programmers write parallel software is an urgent problem given the popularity of multi-core architectures. Engineering compilers which automatically parallelize and vectorize code has turned out to be very challenging. Compilers are not powerful enough to exploit all opportunities for optimization in a code fragment – rather, they are selective with respect to the coding patterns they optimize. However, even minor code changes may enable optimizations to succeed where they previously would not. We present an interactive approach and a tool set which leverages advanced compiler analysis and optimizations while retaining programmer control over the source code and its transformation. Our tool-set provides comments describing why optimizations do not apply to a code fragment and suggests workarounds which can be applied automatically. We demonstrate the ability of our tool to transform code, and suggest code refactoring that increase its amenability to optimization. Experiments with an image processing benchmark shows that automatic loop parallelization of the original code result in minor speed-ups or significant slowdowns with the GNU C compiler, gcc. With our approach, automatic parallelization yields 8.6 best-case speedup over the sequential version. The transformations and suggestions are based on the loop parallelization and matrix reorganization capabilities in the latest production release of gcc. |
| File Format | PDF HTM / HTML |
| Alternate Webpage(s) | http://www.ics.uci.edu/~perl/multiprog11-code_comments.pdf |
| Language | English |
| Access Restriction | Open |
| Content Type | Text |
| Resource Type | Article |