Zen-C
Loading...
Searching...
No Matches
CompilerConfig Struct Reference

Compiler configuration and flags. More...

#include <zprep.h>

Data Fields

char * input_file
 Input source file path.
 
char * output_file
 Output binary file path.
 
int mode_run
 1 if 'run' command (compile & execute).
 
int mode_check
 1 if 'check' command (syntax/type check only).
 
int emit_c
 1 if –emit-c (keep generated C file).
 
int verbose
 1 if –verbose.
 
int quiet
 1 if –quiet.
 
int no_zen
 1 if –no-zen (disable zen facts/easter eggs).
 
int repl_mode
 1 if –repl (internal flag for REPL usage).
 
int is_freestanding
 1 if –freestanding (no stdlib).
 
int mode_transpile
 1 if 'transpile' command (to C).
 
int use_cpp
 1 if –cpp (emit C++ compatible code).
 
int use_cuda
 1 if –cuda (emit CUDA-compatible code).
 
int use_objc
 1 if –objc (emit Objective-C compatible code).
 
int mode_lsp
 1 if 'lsp' command (Language Server Protocol).
 
char gcc_flags [4096]
 Flags passed to the backend compiler.
 
char cc [64]
 Backend compiler command (e.g. "gcc", "clang").
 

Detailed Description

Compiler configuration and flags.

Field Documentation

◆ cc

char CompilerConfig::cc[64]

Backend compiler command (e.g. "gcc", "clang").

◆ emit_c

int CompilerConfig::emit_c

1 if –emit-c (keep generated C file).

◆ gcc_flags

char CompilerConfig::gcc_flags[4096]

Flags passed to the backend compiler.

◆ input_file

char* CompilerConfig::input_file

Input source file path.

◆ is_freestanding

int CompilerConfig::is_freestanding

1 if –freestanding (no stdlib).

◆ mode_check

int CompilerConfig::mode_check

1 if 'check' command (syntax/type check only).

◆ mode_lsp

int CompilerConfig::mode_lsp

1 if 'lsp' command (Language Server Protocol).

◆ mode_run

int CompilerConfig::mode_run

1 if 'run' command (compile & execute).

◆ mode_transpile

int CompilerConfig::mode_transpile

1 if 'transpile' command (to C).

◆ no_zen

int CompilerConfig::no_zen

1 if –no-zen (disable zen facts/easter eggs).

◆ output_file

char* CompilerConfig::output_file

Output binary file path.

◆ quiet

int CompilerConfig::quiet

1 if –quiet.

◆ repl_mode

int CompilerConfig::repl_mode

1 if –repl (internal flag for REPL usage).

◆ use_cpp

int CompilerConfig::use_cpp

1 if –cpp (emit C++ compatible code).

◆ use_cuda

int CompilerConfig::use_cuda

1 if –cuda (emit CUDA-compatible code).

◆ use_objc

int CompilerConfig::use_objc

1 if –objc (emit Objective-C compatible code).

◆ verbose

int CompilerConfig::verbose

1 if –verbose.


The documentation for this struct was generated from the following file: