Back to search

University of Kansas

Compiler Transformations to Generate Reentrant C Programs to Assist Software Parallelization

Abstract

dc:description.abstract

As we move through the multi-core era into the many-core era it becomes obvi- ous that thread-based programming is here to stay. This trend in the development of general purpose hardware is augmented by the fact that while writing sequential programs is considered a non-trivial task, writing parallel applications to take ad- vantage of the advances in the number of cores in a processor severely complicates the process. Writing parallel applications requires programs and functions to be reentrant. Therefore, we cannot use globals and statics. However, globals and statics are useful in certain contexts. Globals allow an easy programming mecha- nism to share data between several functions. Statics provide the only mechanism of data hiding in C for variables that are global in scope. Writing parallel programs restricts users from using globals and statics in their programs, as doing so would make the program non-reentrant. Moreover, there is a large existing legacy code base of sequential programs that are non-reentrant, since they rely on statics and globals. Several of these sequential programs dis- play significant amounts of data parallelism by operating on independent chunks of input data, and therefore can be easily converted into parallel versions to ex- ploit multi-core processors. Indeed, several such programs have been manually converted into parallel versions. However, manually eliminating all globals and statics to make the program reentrant is tedious, time-consuming, and error-prone. In this paper we describe a system to provide a semi-automated mechanism for users to still be able to use statics and globals in their programs, and to let the compiler automatically convert them into their semantically-equivalent reentrant versions enabling their parallelization later.

Degree

thesis:*
Name thesis:degree_name
M.S.
Discipline thesis:degree_discipline
Electrical Engineering & Computer Science
Grantor dc:publisher
University of Kansas
Year dc:date.issued
2009

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Smith, Adam R.
Advisor dc:contributor.advisor
  • Kulkarni, Prasad
Committee members dc:contributor.committeemember
  • Alexander, Perry
  • Gill, Andrew

Subjects

dc:subject × 4

Rights

dc:rights.accessrights
Statement dc:rights.accessrights
  • openAccess
  • This item is protected by copyright and unless otherwise specified the copyright of this thesis/dissertation is held by the author.
Language dc:language.iso
EN

Identifiers

dc:identifier.*
Dc Identifier Bibid
6857571

Chain of custody

source
Harvested from
University of Kansas
Base URL
kuscholarworks.ku.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Smith, Adam R.. Compiler Transformations to Generate Reentrant C Programs to Assist Software Parallelization. University of Kansas, 2009. https://hdl.handle.net/1808/5314