|
BFC-Compiler
A C23 Brainfuck compiler
|
Target-triple parsing and host detection. More...
Data Structures | |
| struct | bfc_target_entry_t |
| One accepted target-triple mapping. More... | |
Functions | |
| bfc_error_t | bfc_target_parse (bfc_target_t *target, const char *triple) |
| Looks up a supported textual target triple. | |
| bfc_target_t | bfc_target_host (void) |
| Derives the native target from compiler predefined macros. | |
Variables | |
| static const bfc_target_entry_t | BFC_TARGETS [] |
| Target triples recognized by the command-line interface. | |
Target-triple parsing and host detection.
Maps accepted target strings to internal targets and derives the native target from compiler predefined macros.
| bfc_target_t bfc_target_host | ( | void | ) |
Derives the native target from compiler predefined macros.
Returns the target corresponding to the compiler host.
Derives the native target from compiler predefined macros.
| bfc_error_t bfc_target_parse | ( | bfc_target_t * | target, |
| const char * | triple ) |
Looks up a supported textual target triple.
Parses a supported target triple.
Looks up a supported textual target triple.
| [out] | target | Receives the parsed target on success. |
| [in] | triple | Null-terminated target triple. |
|
static |
Target triples recognized by the command-line interface.