Cmod: Modular Information Hiding and Type-Safe Linking for C

dc.contributor.authorSrivastava, Saurabh
dc.contributor.authorHicks, Michael
dc.contributor.authorFoster, Jeffrey S.
dc.date.accessioned2010-05-29T20:24:18Z
dc.date.available2010-05-29T20:24:18Z
dc.date.issued2006-07-31
dc.description.abstractThis paper presents CMod, a novel tool that provides a sound module system for C. CMod works by enforcing a set of four rules that are based on principles of modular reasoning and on current programming practice. CMod's rules flesh out the convention that .h header files are module interfaces and .c source files are module implementations. Although this convention is well-known, developing CMod's rules revealed there are many subtleties in applying the basic pattern correctly. We have proven formally that CMod's rules enforce both information hiding and type-safe linking. We evaluated CMod on a number of benchmarks, and found that most programs obey CMod's rules, or can be made to with minimal effort, while rule violations reveal brittle coding practices including numerous information hiding violations and occasional type errors.en_US
dc.identifier.urihttp://hdl.handle.net/1903/10110
dc.language.isoen_USen_US
dc.relation.ispartofseriesUM Computer Science Department;CS-TR-4816
dc.titleCmod: Modular Information Hiding and Type-Safe Linking for Cen_US
dc.typeTechnical Reporten_US

Files

Original bundle
Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
CS-TR-4816.pdf
Size:
442.51 KB
Format:
Adobe Portable Document Format
License bundle
Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
1.8 KB
Format:
Item-specific license agreed upon to submission
Description: