C89(1)

πŸ“¦
version 15.2.0 Β· 3 versions
, in ubuntu questing

πŸŽ€ C89(1) πŸŽ€

Manual name: General Commands Manual πŸ“– (this is the section where all the good stuff lives, bestie 🧚)

✨ NAME ✨

c89 πŸ’– is an ANSI (1989) C compiler. Yes, it's an actual compiler, and it's giving vintage. πŸ¦‹

🌸 SYNOPSIS 🌸

c89 [-pedantic] [-pedantic-errors] [-D_ANSI_SOURCE] options ...

πŸ’… DESCRIPTION πŸ’…

okay so c89 basically calls the C compiler (cc) for you with whatever options you hand it 🫢, but it sets up a C language environment that's compatible with the -ansiC specification. so it's strict, it's proper, it's very "I read the rules" energy ✨

here's the tea 🍡 it handles trigraphs properly (main character behavior πŸ‘‘), and it turns off the non-ANSI compiler features like asm, inline, typeof, and the $ character in identifiers. no cap, those are all banned in this environment πŸ™ˆ It also defines the preprocessor symbol __STRICT_ANSI__ πŸ’œ so your code can check that it's running in strict mode. iconic, honestly.

πŸ¦‹ SEE ALSO πŸ¦‹

cc(1) has the full rundown of all the options πŸ“ go check it out, it's literally the source of truth.

πŸ•°οΈ HISTORY πŸ•°οΈ

This one appeared in NetBSD 1.4 ✨ it's been around, it's got history, it's aging like fine wine 🍷

😭 BUGS 😭

⚠️ bestie, real talk: c89 is a shell wrapper script 🐚 that just hands everything off to cc. because of that, any compile errors come out prefixed with "cc:" instead of "c89:". so if you're confused about where that error came from, now you know 🫢

🌈 That's the whole page, babe! It's C89(1) from the General Commands Manual πŸ’– go forth and compile responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from