Size Problem for a Program

I have written a very simple and short program
The size of the program file is 7 kbytes, correct
But when running it has 700 kbytes of code !!!
(I have seen it using pidin -f nmcd)
that’s very big I don’t undestand why ?
I have compiled the program without -g option.
Could you help me to reduce the running code ?
Thank you very much,
Alan

The number you are seeing probably includes the size of shared libraries
such as libc.so. If you look at the output of “pidin info” while the
program is not running and then when you have even several instances of it
running, you should see very little difference.

dB

“Comma” <a.ronce.no.spam@commassoc.com> wrote in message
news:b3j1qm$qbm$1@inn.qnx.com

I have written a very simple and short program
The size of the program file is 7 kbytes, correct
But when running it has 700 kbytes of code !!!
(I have seen it using pidin -f nmcd)
that’s very big I don’t undestand why ?
I have compiled the program without -g option.
Could you help me to reduce the running code ?
Thank you very much,
Alan