Recently, GUI (Graphical User Interface) is more important than ever. So, the CISC type graphics processors have been widely used, and the RISC type graphics processors are being developed for the performance benefit. The GISC (Graphics Instruction Set Computer) processor is a RISC type graphics processor which is under development at KAIST.
In this thesis, we implement C compiler for the GISC Processor. And we propose a technique called Delayed Read/Modify/Write to optimize the graphics library routines. As the front end of the complier is the same as those of the other machines, we use GNU C compiler for the front end part of our compiler. And we implement the back end of our compiler for the GISC graphics processor. In the frame buffer accesses, the pixel coherency in the direction of X coordinate make it possible to access the frame buffer not per pixel, but per word. So we can reduce the frequency of frame buffer accesses and the execution cycle time.
The simulation result of both unoptimized and optimized graphics library show that the code generation of our GISC compiler is correct and the optimization techniques proposed in this thesis improve the performance of the graphics operations.