From f06ab846e3e297007afe65d9f815afff4638af0d Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Sat, 15 Oct 2022 12:23:23 -0700 Subject: Automatically discover programs and incorporate into the binary --- main.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 63dcb50..28dcbf7 100644 --- a/main.cpp +++ b/main.cpp @@ -2,19 +2,11 @@ #include #include #include -#include #include #include #include "isa/checker.h" - -extern std::uint8_t _binary_count_bin_start[]; -extern std::uint8_t _binary_fib_bin_start[]; - -static const std::map programs = { - { "count", _binary_count_bin_start }, - { "fib", _binary_fib_bin_start }, -}; +#include "programs/programs.h" int load_program(checker &checker, const std::uint8_t *program) { bool seen_non_leader = false; -- cgit v1.2.3