I built some code with two different compilers. The gcc7.1 was a part of my toolchain. I then used gcc_10.3 to be able to include -fsanitize. But the size of the binaries has grown massively as you can see below. Which of the parameters I have used could have contributed to it ? Anything that I can remove so I am still able to use fsanitize and at the same time debug effectively.
82M binary_built_with_linaro-aarch64-2017.08-gcc7.1
259M binary_built_with_gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu
The options are -
-Wno-error -g -Og -UNDEBUG -rdynamic -funwind-tables -fstack-protector -fstack-protector-all -fno-omit-frame-pointer -fsanitize=address,undefined
Aucun commentaire:
Enregistrer un commentaire