|
BFC-Compiler
A C23 Brainfuck compiler
|
Target architecture and operating-system interface. More...
#include "bfc_error.h"Go to the source code of this file.
Data Structures | |
| struct | bfc_target_t |
| Architecture and operating-system pair used to select a backend. More... | |
Enumerations | |
| enum | bfc_arch_t { BFC_ARCH_X86_64 , BFC_ARCH_I386 , BFC_ARCH_AARCH64 , BFC_ARCH_ARM32 } |
| Architectures understood by target parsing and backend selection. | |
| enum | bfc_os_t { BFC_OS_WINDOWS , BFC_OS_MACOS , BFC_OS_LINUX } |
| Operating systems that determine ABI and object-format behaviour. | |
Functions | |
| bfc_error_t | bfc_target_parse (bfc_target_t *target, const char *triple) |
| Parses a supported target triple. | |
| bfc_target_t | bfc_target_host (void) |
| Returns the target corresponding to the compiler host. | |
Target architecture and operating-system interface.
Defines code-generation targets, target-triple parsing, and host-target detection.
| bfc_target_t bfc_target_host | ( | void | ) |
Returns the target corresponding to the compiler host.
Derives the native target from compiler predefined macros.
Returns the target corresponding to the compiler host.
| bfc_error_t bfc_target_parse | ( | bfc_target_t * | target, |
| const char * | 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. |
Parses a supported target triple.