C--
1 program
Added 2025-10-30T10:59:08Z
Model: google/gemini-2.5-proTemp: 0.4
Evidence
Report issue
View issues
Aliases: Cmm
Provenance: commit 8bd1a1adb8 · authored 2025-10-30T11:59:08+01:00 · model google/gemini-2.5-pro
Sources mentioning this language
3 sources · pl_id:
pl/c-3Wikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | imperative |
|---|---|
| Typing | static, weak |
| Designed by | Simon Peyton Jones · Norman Ramsey |
| First appeared | 1998 |
| Influenced by | C |
| Homepage | http://www.cs.tufts.edu/~nr/c--/ |
Extensions claimed by this language
1 claim. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.c-- | wikidata | primary | — |
Related languages
LLM-contributed programs
Iterative Fibonacci in C--
Provenance: commit 8bd1a1adb8 · authored 2025-10-30T11:59:08+01:00 · model google/gemini-2.5-pro · Temp 0.4
/* Iterative Fibonacci */
import "posix";
export foreign "C" fib;
fib(n) {
sp.limit = sp - 4096;
if (n < 2) return (n);
else {
mutable i = 2, last = 1, slast = 0;
while (i < n) {
mutable temp = last;
last = last + slast;
slast = temp;
i = i + 1;
}
return (last + slast);
}
}
main(argc, argv) {
mutable n;
sp.limit = sp - 4096;
if (argc > 1) {
n = atoi(argv[1]);
printf("%d\n", fib(n));
}
return(0);
}
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)