SUPERSCALAR RISC MACHINES, STRAIGHT-LINE PROGRAMS, AND GRAPHICS

Authors
Citation
C. Narayanaswami, SUPERSCALAR RISC MACHINES, STRAIGHT-LINE PROGRAMS, AND GRAPHICS, The visual computer, 12(3), 1996, pp. 117-131
Citations number
28
Categorie Soggetti
Computer Science Software Graphycs Programming
Journal title
ISSN journal
01782789
Volume
12
Issue
3
Year of publication
1996
Pages
117 - 131
Database
ISI
SICI code
0178-2789(1996)12:3<117:SRMSPA>2.0.ZU;2-B
Abstract
Implementers of graphics application programming interfaces (APIs) and algorithms are often required to support a plethora of options for se veral stages at the back end of the geometry and rasterization pipelin e. Implementing these options in high-level programming languages such as C leads to code with many branches and large object modules due to indiscriminate duplication of very similar code. This reduces the spe ed of execution of the program. This paper examines the problems of br anches and code size in detail and presents techniques for transformin g typical code sequences in graphics programs to reduce the number of branches and to reduce to the size of the program. A set of branch-fre e basis functions is defined first. The application of these functions to common geometric queries, geometry pipeline computations, rasteriz ation, and pixel processing algorithms is then discussed.