-
I created libspdlog.a and when I compiled my code, I set -DSPDLOG_COMPILED_LIB and also linked to libspdlog.a. My application is around 100000000 bytes. If I used my own logging lib, the bindary size is around 80000000. -g -O2 was turned on. Just want to check whether I used correctly. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 6 replies
-
It is not possible to guess from the information provided. Since spdlog is bundled with fmt, the file size may be larger than a simple logging library. Is the size of |
Beta Was this translation helpful? Give feedback.
-
-rw-r--r-- 1 sgfxbuild FX 2096726 Jun 21 2020 libspdlog.a |
Beta Was this translation helpful? Give feedback.
-
$ cmake320 CMAKE_INTERPROCEDURAL_OPTIMIZATION=ON .. cmake320 to make sure the system use version 3.20 and can I ignore Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed |
Beta Was this translation helpful? Give feedback.
-
$ cmake320 CMAKE_INTERPROCEDURAL_OPTIMIZATION=ON .. $ make -j ls -ltra |
Beta Was this translation helpful? Give feedback.
-
1.4MB or 20MB? How to get 20MB? |
Beta Was this translation helpful? Give feedback.
-
cmake320 -DCMAKE_BUILD_TYPE=Release -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON .. make -j ls -ltra Why is the latest size bigger: -rw-r--r-- 1 mcheng flexusr 1486832 Jan 3 15:34 libspdlog.a |
Beta Was this translation helpful? Give feedback.
1.4MB or 20MB? How to get 20MB?