View Full Document

Compositional C++ (CC+ +)



View the full content.
View Full Document
View Full Document

11 views

Unformatted text preview:

Compositional C CC Presented by Xiaojin Niu 3 13 2003 Outline Introduction of CC Description of CC Performance Issues Summary Reading Assignment Introduction Parallel C A number of languages and extensions of C have emerged trying to make the C capable of parallel computation http www fou uib no fd 1996 h 413002 node12 html pC uses class and templates to achieve parallelization http www extreme indiana edu sage CC expands the syntax of C with par allel primitives Introduction Cont What is CC developed by K Main Chandy Carl Kesselman at Caltech designed to alleviate the frustration of parallel programming by extending the C CC is a strict superset of C CC compiler is a translator it translates CC code into C code containing embedded calls to the CC runtime library based on the Nexus runtime library and an operating system specific thread library Description of CC six basic abstractions implemented by the CC extensions processor object global pointer thread sync variable atomic function transfer function keywords of CC what is the keyword how to use examples 1 Processor object mechanism for controlling locality a collection of data and computation that defines a single address space virtual address space processor objects can be located on the same physical address space exist independently of threads and more than one thread can be mapped to a processor object refer to the reading assignment for details Processor object declaration add a global keyword to the class or structure declaration the declaration specifies the interface to objects of that type normal C member function rules apply to processor objects Cont Allocating using the C new operator the implementation defined type proc t defines the ho st name where the processor object is to be run eg proc t palcement stimpy cis udel edu project global project ptr new placement project constructor arguments creates a new processor object of type project on host stimpy ci s udel edu Deallocating using the delete



Access the best Study Guides, Lecture Notes and Practice Exams

Loading Unlocking...
Login

Join to view Compositional C++ (CC+ +) and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Compositional C++ (CC+ +) and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?