The raco ctool command works in various modes (as determined by command-line flags) to support various tasks involving C code.
12.1 Compiling and Linking C Extensions
12.1.1 API for 3m Transformation
12.2 Embedding Modules via C