From c7d14d052809466f9ea26d4c64719ef5e62b3259 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Mon, 29 Mar 2021 09:26:13 +0900 Subject: [PATCH] Add tool 'krk-debug-stats' which prints basic sizes --- tools/debug-stats.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tools/debug-stats.c diff --git a/tools/debug-stats.c b/tools/debug-stats.c new file mode 100644 index 0000000..e36d151 --- /dev/null +++ b/tools/debug-stats.c @@ -0,0 +1,13 @@ +#include +#include +#include + +int main(int argc, char *argv[]) { + fprintf(stderr, "sizeof(KrkValue) = %lld\n", (long long)sizeof(KrkValue)); + fprintf(stderr, "alignof(KrkValue) = %lld\n", (long long)__alignof__(KrkValue)); + fprintf(stderr, "sizeof(KrkObj) = %lld\n", (long long)sizeof(KrkObj)); + fprintf(stderr, "alignof(KrkObj) = %lld\n", (long long)__alignof__(KrkObj)); + return 0; +} + +