experimental baremetal

we no longer depend on libc
This commit is contained in:
2025-07-09 19:17:57 +02:00
parent 779d5a0c19
commit 51b3602088
19 changed files with 332 additions and 316 deletions

View File

@@ -4,7 +4,7 @@
#include "neonucleus.h"
typedef struct nn_signal {
size_t len;
nn_size_t len;
nn_value values[NN_MAX_SIGNAL_VALS];
} nn_signal;
@@ -15,26 +15,26 @@ typedef struct nn_computer {
void *userdata;
nn_guard *lock;
nn_component *components;
size_t componentLen;
size_t componentCap;
nn_size_t componentLen;
nn_size_t componentCap;
nn_value args[NN_MAX_ARGS];
size_t argc;
nn_size_t argc;
nn_value rets[NN_MAX_RETS];
size_t retc;
nn_size_t retc;
nn_architecture *arch;
void *archState;
nn_architecture *nextArch;
nn_architecture *supportedArch[NN_MAX_ARCHITECTURES];
size_t supportedArchCount;
nn_size_t supportedArchCount;
double timeOffset;
nn_universe *universe;
char *users[NN_MAX_USERS];
size_t userCount;
nn_size_t userCount;
double energy;
double maxEnergy;
nn_signal signals[NN_MAX_SIGNALS];
size_t signalCount;
size_t memoryTotal;
nn_size_t signalCount;
nn_size_t memoryTotal;
nn_address address;
nn_address tmpAddress;
double temperature;