Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

My mod file is too large(201k), so i want to compile in thumb mode. But i dont know how to set the compiler flag, who can tell me?

thanks

My mod file is too large(201k), so i want to compile in thumb mode. But i dont know how to set the compiler flag, who can tell me?
thanks

My mod file is too large(201k), so i want to compile in thumb mode. But i dont know how to set the compiler flag, who can tell me?
thanks

There is no flag for thumb compilation. In the Makefile that is generated by .NET (with the BREW plugin) specifies couple of things. One is "ARMCC" which is a C compiler using ARM. The other one is "THUMBCC" which is the C compiler for THUMB.
So, in the inference rules within the Makefile, change ARMCC to THUMBCC. Also, don't generate AEEAppGen.o and AEEModGen.o using THUMB since that mod file will cause your handset to power-cycle (I don't know the reason -- does anybody else know?).
And of course, you can subsitute THUMBCC with THUMBCPP, and vice versa. Also, don't forget the linker flag "interwork" to allow both ARM and THUMB compilations to work together.
HTH

There is no flag for thumb compilation. In the Makefile that is generated by .NET (with the BREW plugin) specifies couple of things. One is "ARMCC" which is a C compiler using ARM. The other one is "THUMBCC" which is the C compiler for THUMB.
So, in the inference rules within the Makefile, change ARMCC to THUMBCC. Also, don't generate AEEAppGen.o and AEEModGen.o using THUMB since that mod file will cause your handset to power-cycle (I don't know the reason -- does anybody else know?).
And of course, you can subsitute THUMBCC with THUMBCPP, and vice versa. Also, don't forget the linker flag "interwork" to allow both ARM and THUMB compilations to work together.
HTH

Hi Rock,
Thanks for your help! The mod file is reduced to 141k and works well now. It's
so exciting.
Best wishes,
gavin

Hi Rock,
Thanks for your help! The mod file is reduced to 141k and works well now. It's
so exciting.
Best wishes,
gavin

This post by Rock Lee may help you.
http://brewforums.qualcomm.com/showthread.php?t=7509

This post by Rock Lee may help you.
http://brewforums.qualcomm.com/showthread.php?t=7509

Hi All,
I m trying to compile my code in thumb mode.insted of using armcc compiler ,m using thumb complier which is "tcc".as given in this post,m replacing armcc with tcc and also m not compiling aeeappgen and modgen.o.but m getting the following error.
this error m not getting when m compiling using armcc.where i may be gng wrong.
Error: L6218E: Undefined symbol AEEMod_Load (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r3 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r1 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r5 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r2 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r4 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r7 (referred from app.o).
Error: L6218E: Undefined symbol AEEApplet_New (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r6 (referred from app.o).
Thanks
ibrew

Hi All,
I m trying to compile my code in thumb mode.insted of using armcc compiler ,m using thumb complier which is "tcc".as given in this post,m replacing armcc with tcc and also m not compiling aeeappgen and modgen.o.but m getting the following error.
this error m not getting when m compiling using armcc.where i may be gng wrong.
Error: L6218E: Undefined symbol AEEMod_Load (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r3 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r1 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r5 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r2 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r4 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r7 (referred from app.o).
Error: L6218E: Undefined symbol AEEApplet_New (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r6 (referred from app.o).
Thanks
ibrew

Hello ibrew,
Quote: also m not compiling aeeappgen and modgen.o
you must compile these files but with armcc not with tcc.
Quote:
Error: L6218E: Undefined symbol AEEMod_Load (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r3 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r1 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r5 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r2 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r4 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r7 (referred from app.o).
Error: L6218E: Undefined symbol AEEApplet_New (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r6 (referred from app.o).
the arm linker is not getting the .o files for AEEMod_Load and AEEApplet_New.

Hello ibrew,
Quote: also m not compiling aeeappgen and modgen.o
you must compile these files but with armcc not with tcc.
Quote:
Error: L6218E: Undefined symbol AEEMod_Load (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r3 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r1 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r5 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r2 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r4 (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r7 (referred from app.o).
Error: L6218E: Undefined symbol AEEApplet_New (referred from app.o).
Error: L6218E: Undefined symbol __call_via_r6 (referred from app.o).
the arm linker is not getting the .o files for AEEMod_Load and AEEApplet_New.