Hello
Did you include stdlib.h in the source file where you are using malloc?
If not, there is no prototype for the function malloc and the compiler will assume it returns an int (thus adding an ext.l instruction).
Additionally did you link against the appropriate ANSI library?
Please refer to the {Install}\Help\PDF\ColdFire_Build_Tools_Reference.pdf Chapter "Coldfire RunTime Libraries", section
"MSL for Coldfire Development " -> "Using MSL Library for Coldfire".
In order to prevent this kind of issue in the future I would recommend you to activate the option "Require Function Prototype" in the C/C++ Language panel.
This way the compiler will generate an error message if you use a function and you did not define its prototype previously.
I hope this helps.
CrasyCat