atsopt(1)
π atsopt β like, the patsopt era π
okay bestie, so this is the manual page for atsopt from the General Commands Manual section. It's patsopt(1) if you're being formal, but we're not, we're being us. π
β¨ NAME β¨
patsopt β the ATS2 to C compiler. That's it. That's the whole vibe. π¦
πΈ SYNOPSIS πΈ
patsopt [<options>] [-o <file>] <specifications>...
like. look at her. so simple. so powerful. π«Ά
π DESCRIPTION π
so patsopt is the compiler that takes ATS2 and turns it into C. no cap.
most of the time you're not even calling her directly, bestie β she gets invoked by patscc, which is the preferred frontend for compiling ATS2 code. patscc is the one holding the aux cord, patsopt is the one actually playing the music. π
if you don't say where the output should go, the default is standard output. like, she'll just spill the C right onto your terminal. iconic behaviour honestly.
β οΈ okay but listen: the output option -o <file> has to be specified before any other specifications are given. not after. not in the middle. before. do not test her. π
π OPTIONS π
patsopt takes a whole lil collection of commands with parameters that decide how she behaves:
--depgenβ generate dependency lists. π«--glineβ generate line pragma information in the target code.-h,--helpβ print the usage information. the classic. the beloved. π₯°--taggenβ generate tagging information on syntactic entities.-tc,--typecheckβ typecheck the ATS source files you gave her, and then stop. go no further. that's it, that's the whole job. β-v,--versionβ show the ATS2/Postiats version and the gcc version. two for one. slay. β¨
π SPECIFICATIONS π
she also takes a bunch of command-line specifications telling her which files to actually deal with:
-d,--dynamic <filenames>β dynamically load the filenames. π¦-o,--output <filename>β specify the output filename. (remember the thing!! before everything else!! π)-s,--static <filenames>β statically load the filenames.
π EXAMPLES π
patsopt -o test.c -d test.dats
compile test.dats into a C file. periodt. π
patsopt -tc -d test.dats
typecheck test.dats and literally nothing else. she peeks, she judges, she leaves. π
π₯ SEE ALSO π₯
patscc(1)- these programs are documented fully by The ATS2/Postiats user's manual, which lives on the web at
http://www.ats-lang.org/β go read it, iykyk π
π AUTHOR π
patsopt was written by Hongwei Xi. π«Ά
this manual page was written by Matthew Danish <mrd@debian.org>, for the Debian project (and it may be used by others too, sharing is caring π).
and that's the whole page bestie!! this lil doc is dated October 8, 2013, and it's the atsopt(1) page from the General Commands Manual. go compile something cute. mwah. π
β¨π
π¦ where this page comes from
- debian bookworm: ats2-lang 0.4.2-1.1 Β· GPL-3.0-only
- debian trixie: ats2-lang 0.4.2-3 Β· GPL-3.0-only
- ubuntu jammy: ats2-lang 0.4.2-1 Β· GPL-3.0-only
- ubuntu noble: ats2-lang 0.4.2-1.1 Β· GPL-3.0-only
- ubuntu questing: ats2-lang 0.4.2-3
- ubuntu resolute: ats2-lang 0.4.2-5 Β· GPL-3.0-only
- ubuntu stonking: ats2-lang 0.4.2-6 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms