This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Code size is increasing if not written in main file

Hai all,

Presently i am working on Cortex-M3 controller(ST make) for that i have written small code ( about 1.8k byte when compiled) and it worked well. And when i tried to write that program in anoter file and called from the main function the code size became 58 kbyte, when i compiled.

I want to know why ??
can anyone help me out.