How to build a Library using codewarrior for coldfire?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to build a Library using codewarrior for coldfire?

ソリューションへジャンプ
1,886件の閲覧回数
bluehacker
Contributor III

I developed a algorithm library for coldfire, and hope build as a library (NOT application). I use codewarrior for coldfire V7.2

and select MCU as MCF52259.

 I create a default project using wizard, and then remove all project files (such as main.c, mcf52259 link file etc).,then add my c source code in the project, then choose "coldfire Target" in the project setting panel. then build.

finally ,I get a "*.a" binrary file. but one trouble is this *.a file is very big!.

for example, a simple c source code file, only contain about 200 lines c code., and all source code is simple operation ,no use any external library ,such as "printf, strlen....“ functions are also never called.

BUT the final binary library file has about 1.6MB size, it is very big.  I disassemble the *.a file, find many items related to EWL C library, it seems link the EWL C library into my binary library.

 

my question is :what is the matter? how to reduce the binary file size?

 

thanks for your help !

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
776件の閲覧回数
stanish
NXP Employee
NXP Employee

Hi bluehacker,

 

I'd suggest you to try to disable "Control libraries" option in the "Librarian" settings panel. (see attached screenshot).

Then the final library doesn't include EWL C library functions.

 

Stanish

 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
777件の閲覧回数
stanish
NXP Employee
NXP Employee

Hi bluehacker,

 

I'd suggest you to try to disable "Control libraries" option in the "Librarian" settings panel. (see attached screenshot).

Then the final library doesn't include EWL C library functions.

 

Stanish

 

0 件の賞賛
返信