CLU reference manual
Compilers: principles, techniques, and tools
Compilers: principles, techniques, and tools
Modular programming in C: an approach and an example
ACM SIGPLAN Notices
Classes: an abstract data type facility for the C language
ACM SIGPLAN Notices
Free and bound generics: two techniques for abstract data types in modular C
ACM SIGPLAN Notices
Implementation implications of Ada generics
ACM SIGAda Ada Letters
Hi-index | 0.00 |
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.