[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Inlining

With CodeWarrior you can turn inlining off, allow normal inlining, auto-inline, or set the maximum depth of inlining.

Inlining may reduce or increase code size. There is no definite answer for this question. Inlining small functions can make a program smaller. In particular if you have a class library with a lot of getter/setter member functions, the code size can be quite a bit smaller with inlining on.

However, MSL C++ defines many functions as inline, and this is not good if you want minimal code size. For optimal code size when using MSL C++, turn inlining off when you build the library. If you are not using MSL C++, normal inlining and a common sense use of the keyword "inline" may improve your code size.

In CodeWarrior you control inlining as a language option in the target settings. The option is in the C/C++ Language settings panel.

When debugging your code, turn inlining off to maintain a clear correspondence between source and object code. After debugging, set the inlining level that has the best effect on your object code.

See also "Inlining."


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000