[Ilugc] doubt regarding macro inclusions.

  • From: rameshd@xxxxxxxxxxxxx (Ramesh Devrajan)
  • Date: Wed Feb 9 23:07:56 2005

Dear all,

I am facing a peculiar problem. I have compiled a c code in linux (redhat
7.2). I got an exe file of size 7352352 bytes.

I include a define . After compilation i find that the size is reduced to
7348801. a reduction of nearly 4k bytes.

I am sure that i am not commenting or undefing any macros or codes.
Also a little size reduction is justified since i will be reducing the
number of if stetments.
Moreover the obj size of some files in which i have not included this
define is also reducing. I also include the header file in which the
macros is defined in some code files.

Can anybody explain why this is happening. I am not getting any error in the
exe but want to know the reason for reduction.
-- 
Ramesh Devrajan

Other related posts:

  • » [Ilugc] doubt regarding macro inclusions. - Ramesh Devrajan