c89 — ANSI (1989) C compiler
| Use Case | Command | Description |
|---|---|---|
| Compile a C89 source file | c89 program.c -o program |
🔧 Compile program.c with strict ANSI C89 rules |
| Compile with pedantic warnings | c89 -pedantic program.c |
⚠️ Issue all required ANSI C warnings |
| Compile with pedantic errors | c89 -pedantic-errors program.c |
🚫 Treat all ANSI warnings as errors |
| Define an ANSI preprocessor symbol | c89 -D_ANSI_SOURCE program.c |
📌 Define _ANSI_SOURCE for strict ANSI conformance |
| View full compiler options | c89 --help or man cc |
📖 See cc(1) for all available options |
c89 [-pedantic] [-pedantic-errors] [-D_ANSI_SOURCE] options ...
🔧 Calls the C compiler (cc) with the given options, using a C language environment compatible with the -ansiC specification.
🔧 This includes proper handling of trigraphs, 🚫 disabling non-ANSI compiler features (such as asm, inline, typeof, and the $ character in identifiers), and 📌 definition of the preprocessor symbol __STRICT_ANSI__.
cc(1) — 📖 for a description of all options.
📅 Appeared in NetBSD 1.4.
⚠️ Since c89 is a shell wrapper script to cc, compile errors are prefixed by “cc:”.
Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 04:49 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)