1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
| | .\" Man page for olc
.\" Contact ~johnnyrichard/olang-devel@lists.sr.ht to report issues
.TH man 1 "Feb 2024" "0.0" "olc man page"
.SH NAME
olc \- olang compiler
.SH SYNOPSIS
olc source_file
[ --dump-tokens ] [ --dump-ast ] [ [ -o output_file [ --save-temps ] [ --arch arch ] [ --sysroot dir] ]
.SH DESCRIPTION
.B olc
is the official O programming language compiler, it is also a tool that contains
utilities to help the language development.
.SH OPTIONS
.TP
.BI \-\-dump-tokens
Display lexical tokens given a soruce.ol code.
.TP
.BR \-\-dump-ast
Display AST tree to stdout right after syntax analyzes
.TP
.BI \-o\ file
Compile program into a binary file
.TP
.BI \-c
Compile or assemble the source files, but do not link. The linking stage
simply is not done. The ultimate output is in the form of an object file
for each source file.
.TP
.BR \-\-save\-temps
Keep temp files used to compile program
.TP
.BI \-\-arch\ arch
Binary arch: default to "x86_64", avaliable options ("x86_64" | "aarch64")
.TP
.BI \-\-sysroot\ dir
System root dir where the GNU Assembler and GNU Linker are located: default to '/'
.SH AUTHOR
Olang Maintainers <~johnnyrichard/olang-devel@lists.sr.ht>
|