Repository navigation
My executable with rl-tools is more than double size respect to the executable without rl-tools: how is that possible? is it fine and correct? #28
Replies: 1 comment
|
Yes, this is normal and does not mean that something is wrong. rl-tools has no compiled library of its own. When you link
Note: To find what made the binary larger, and to make it smaller: size builddir/MyPrj # text/data vs. total file size
strip -o /tmp/MyPrj.stripped builddir/MyPrj && ls -lah /tmp/MyPrj.strippedIf most of the 574 MB is gone after Turn off what you do not need before set(RL_TOOLS_ENABLE_TARGETS OFF CACHE BOOL "" FORCE) # don't build rl-tools' own executables
set(RL_TOOLS_ENABLE_GIT_DIFF OFF CACHE BOOL "" FORCE)
set(RL_TOOLS_DISABLE_TENSORBOARD ON CACHE BOOL "" FORCE)
set(RL_TOOLS_DISABLE_HDF5 ON CACHE BOOL "" FORCE)
set(RL_TOOLS_DISABLE_ZLIB ON CACHE BOOL "" FORCE)
set(RL_TOOLS_DISABLE_CLI11 ON CACHE BOOL "" FORCE)
add_subdirectory("${RLTOOLSPATH}")You can also link only |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Without RL-Tools:
If I set
rl-toolsin theCMakeLists.txtfile of MyPrj :(base) raphy@raohy:~/MyPrj$ nano CMakeLists.txt:After compiling and building :
the resulting executable is more than double size without rl-tools :
How is that possible? Is it fine and correct?
All reactions