Ccomp(3)
π NAME π
Ccomp β Compiling C files and building C libraries
okay so bestie, this is the Ccomp(3) page from the OCaml library manual, and it's literally about exactly that: compiling C files and building C libraries. The manual name is folded in right here near the top because we are not doing the copy-paste header line, periodt. π
π§ Module π§
Module Ccomp
That's the module, bestie β Ccomp, no cap.
β¨ Documentation β¨
Module Ccomp : sig end
Compiling C files and building C libraries
β οΈ Warning: this module is unstable and part of Compiler_libs .
Now the actual goods, aka the vals, all copied exactly because we do not play with signatures:
val command : string -> intβ takes astringand gives back anint. That's the whole signature on the page, bestie.val run_command : string -> unitβ takes astringand returnsunit; clean, simple, signature-only.val compile_file : ?output:string -> ?opt:string -> ?stable_name:string -> string -> intβ three optional labeled args (?output:string,?opt:string,?stable_name:string), then astring, then anint. All right there, no guessing.val create_archive : string -> string list -> intβstring,string list,int. That's the lineup.val quote_files : response_files:bool -> string list -> stringβ labeledresponse_files:bool, thenstring list, thenstring.val quote_optfile : string option -> stringβstring optionin,stringout.
And then there's this icon of a type, exactly as written:
type link_mode =
| Exe
| Dll
| MainDll
| Partial
The variants are Exe, Dll, MainDll, and Partial β all four, present and accounted for. π
val call_linker : link_mode -> string -> string list -> string -> intβ takes alink_mode, thenstring, thenstring list, thenstring, and returns anint. That's a whole little pipeline, and the signature ate.
mwah π bestie, that's the whole Ccomp(3) page β served fresh by OCamldoc on 2026-06-22. π
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms