9

64-bit C++ binary consumes huge memory even binary size is huge

view full story
linux-howto

http://stackoverflow.com – When we compiled our C++ apps in 32-bit everything was still ok. When we ported everything to 64-bit the binary sizes more than doubled! And when we ran the binaries, only one ran because it was hogging all the RAM. We've done all the 64-bit porting so that compilation is successful. However, during runtime, the memory consumption goes up to the limit. It doesn't crash though. It just runs until it stops and no core file is generated. Does anyone have any suggestion where I should start in investigating this? Our compilation options are: -D_linux_ -pthread -fexceptions -c -Wall -DSTL_H (HowTos)