Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Compiler_C_Backend_Options Struct Reference

Options that control one C backend emission request. More...

#include <Compiler_Backend_C.H>

Collaboration diagram for Aleph::Compiler_C_Backend_Options:
[legend]

Public Attributes

std::string module_name = "module"
 Prefix used to derive stable C identifiers.
 
bool emit_main = false
 Whether to emit a standalone main() when the IR has a top-level body.
 
bool emit_comments = true
 Whether to annotate the generated C with readable IR-derived comments.
 

Detailed Description

Options that control one C backend emission request.

Definition at line 74 of file Compiler_Backend_C.H.

Member Data Documentation

◆ emit_comments

◆ emit_main

bool Aleph::Compiler_C_Backend_Options::emit_main = false

Whether to emit a standalone main() when the IR has a top-level body.

Definition at line 77 of file Compiler_Backend_C.H.

Referenced by Aleph::Compiler_C_Backend::Emitter::emit_main().

◆ module_name

std::string Aleph::Compiler_C_Backend_Options::module_name = "module"

Prefix used to derive stable C identifiers.

Definition at line 76 of file Compiler_Backend_C.H.

Referenced by Aleph::Compiler_C_Backend::Emitter::initialize_symbols(), main(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().


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