Qt application RAM usage

Martyy
Hi,

I upgraded my mini2440 with Qt in version 4.6.3 and I´m surprised with RAM
consumption. An very basic application such as analogclock from examples
occupies more than 18M of memory. I have tried compile it in static mode,
but RAM saving was not very significant (about 3M) and flash footprint was
approx. 50 times bigger (24k vs 12M).

I´m using stock kernel and rootfs, Qt was compiled with following options:

./configure -prefix /usr/local/Qt -fast -pch -no-qt3support -qt-sql-sqlite
-no-libtiff -no-libmng -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype
-no-openssl -nomake examples -nomake demos -nomake tools -optimized-qmake
-no-phonon -no-nis -no-opengl -no-cups -no-largefile -no-xcursor -no-xfixes
-no-xrandr -no-xrender -no-xkb -no-sm -no-xinerama -no-xshape -no-webkit
-no-separate-debug-info -xplatform qws/linux-arm-g++ -embedded arm -depths
16,32 -no-qvfb -qt-gfx-linuxfb -qt-gfx-transformed -no-gfx-qvfb
-no-kbd-qvfb -no-mouse-qvfb -opensource -confirm-license -qt-mouse-tslib
-I/usr/local/tslib/include -L/usr/local/tslib/lib 

Are there any ways to minimize RAM footprint significantly?
What is your RAM consumption of Qt apps ???
Thanks you for your answers.
martyy

Juergen Beisert
How do you measure the 18 MiB of memory your program is using? As Linux is
using the MMU is can assign virtual only memory to the process.

Martyy
Thank you for answer.
I used standard commands/linux utilities like ps,top or free.