Abstract
The structuring achieved by generic packages in Ada can be cheaply emulated in C by judicious use of the preprocessor. Two files are required for the generic package: the specification and the body. Two more files are used in the instantiation: one holding the instantiation parameters and one with auxiliary code. Instantiation results in normal C header and object files (*.h and *.o). Dependency control can be delegated to the make progam. © 1986, ACM. All rights reserved.
Author supplied keywords
Cite
CITATION STYLE
APA
Grune, D. (1986). Generic packages in C. ACM SIGPLAN Notices, 21(8), 31–39. https://doi.org/10.1145/382278.382392
Register to see more suggestions
Mendeley helps you to discover research relevant for your work.
Already have an account? Sign in
Sign up for free