[quote user="Neeraj Verma"]Your answer doesn't match with my problem/query, My problem is "I am getting linking error (code size issue) when using sqrt in CCS" whereas same code works fine on IAR (target is msp430F425).[/quote]
Most probably sqrt() function of IAR library takes less code FLASH or RAM space and/or IAR compiler output is smaller than CCS. Compilers are not the same. If your program can't fit available memory - use either more memory or write smaller code or change compiler or rewrite sqrt() . What's the problem?
http://www.codeproject.com/Articles/69941/Best-Square-Root-Method-Algorithm-Function-Precisi