COQC(1)

πŸ’… COQC β€” the Coq compiler, bestie edition

okay so you opened the manual page for coqc, from the General Commands Manual, and honestly? iconic choice. let's get into it πŸŽ€


✨ NAME ✨

coqc β€” the Coq compiler, no cap πŸ’–


🌸 SYNOPSIS 🌸

coqc [ general Coq options ] file

πŸ¦‹ DESCRIPTION πŸ¦‹

so coqc is literally the batch compiler for the Coq Proof Assistant. it's the one you run when you're not trying to vibe interactively, you just want your stuff compiled. periodt ✨

the options are basically the same as coqtop(1) β€” same energy, same flags, we'll get to the deets.

file.v is the vernacular file you're compiling, bestie. and listen, file has rules, it's giving strict:

  • it must be formed only with the characters a' to Z', 0' to 9' or _'
  • and it must begin with a letter
🚨 not me stressing this: if your filename has a dash, a dot, a space, an emoji (cute but no), or starts with a digit, that is not it. the compiler said no. πŸ’€

the compiler produces an object file file.vo. that's the whole glow-up. πŸ”₯

if you want interactive use of Coq instead of batch mode, go see coqtop(1). that's the hangout spot, this is the homework spot πŸ™ˆ


πŸ‘‘ OPTIONS πŸ‘‘

real talk first: coqc is a script that simply runs coqtop with option -compile. so it accepts the same options as coqtop β€” all of them, fr fr. but here are the two special ones it's known for πŸ’…

  • -image bin β€” use bin as the underlying coqtop instead of the default one. basically you're swapping out who's driving the car πŸš—βœ¨
  • -verbose β€” print the compiled file on the standard output. so you can literally watch it happen, main character energy πŸ‘€

πŸ’œ SEE ALSO πŸ’œ


🫢 cute sign-off 🫢

that's the whole page, bestie β€” coqc from the General Commands Manual, section COQC(1), and yes the footer just says COQC(1) again because the universe loves a callback 🌈 go compile something gorgeous, you absolute legend πŸ’–βœ¨

πŸ“¦ where this page comes from