cbe: get enough things working to support basic programs

* Enable advanced start support.
 * Enable advanced test_runner support.
 * Zig Language Reference's Hello World now works.
This commit is contained in:
Jacob Young
2022-10-19 07:56:02 -04:00
parent 912b84bbad
commit 4765294ca4
11 changed files with 319 additions and 196 deletions

7
lib/include/zig.h vendored
View File

@@ -14,6 +14,12 @@
#define zig_threadlocal zig_threadlocal_unavailable
#endif
#if defined(_MSC_VER)
#define ZIG_NAKED __declspec(naked)
#else
#define ZIG_NAKED __attribute__((naked))
#endif
#if __GNUC__
#define ZIG_COLD __attribute__ ((cold))
#else
@@ -165,7 +171,6 @@
#include <stdint.h>
#include <stddef.h>
#include <limits.h>
#include <math.h>
#define int128_t __int128
#define uint128_t unsigned __int128