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

Developer

Forums

Forums:

after all da initial problems finally we have our project finished...

but da serious issue is of mod file size which is of 350 kb...

actually wat clients req is around 100 kb not more than dat and i dont feel dat even though we put up some good logic and reusability of code doesnot help bcoz hardly it matters to da size more than 200kb shuld be reduced... is there any kind of way i can reduce da mod file size..........

regards
manju

Hi Manju,
You can use thumb mode (16-bit) compilation for MOD file. It reduces the mod size upto 40-50% in comparison to the size of ARM-mode (32-bit) compilation .
~~~~~~~
SoftEast
~~~~~~~

Hi Manju,
You can use thumb mode (16-bit) compilation for MOD file. It reduces the mod size upto 40-50% in comparison to the size of ARM-mode (32-bit) compilation .
~~~~~~~
SoftEast
~~~~~~~

thanks for reply...
i coudnt get all da things clearly from ur post little bit more
details would be helpful... as im using gnu 2 make mak...
regards
manju

thanks for reply...
i coudnt get all da things clearly from ur post little bit more
details would be helpful... as im using gnu 2 make mak...
regards
manju

hi
softeast..
As i was going through posts i saw ur reply to one of da similar post
which says the following about thumb mode-
Yes there will be a slight difference in processing times because Thumb is 16-bit binary whereas ARM is 32-bit binary. I suggest, If your application is info based and relatively simple GUI and not performing too much processings (like we do in Gaming Apps) then there is no harm in use of Thumb compiled mod file.
but my application is a messanger application based on oma standard
which has lot of features and with lot of client/server transactions...
so shuld i try for thumb version of mod file generation??
and if sme details about it will be helpful as i have no idea of it..

hi
softeast..
As i was going through posts i saw ur reply to one of da similar post
which says the following about thumb mode-
Yes there will be a slight difference in processing times because Thumb is 16-bit binary whereas ARM is 32-bit binary. I suggest, If your application is info based and relatively simple GUI and not performing too much processings (like we do in Gaming Apps) then there is no harm in use of Thumb compiled mod file.
but my application is a messanger application based on oma standard
which has lot of features and with lot of client/server transactions...
so shuld i try for thumb version of mod file generation??
and if sme details about it will be helpful as i have no idea of it..

mk.manju wrote:but my application is a messanger application based on oma standard
which has lot of features and with lot of client/server transactions...I think what SoftEast was saying was that the speed of the code is more important when you have an application where frame rate is important, like in games where a slow frame rate and key response could make it completely unplayable. For something like a messaging application, the frame rate and key response will probably be a secondary concern. And with all of those client/server transactions, things like network latency are probably going to overshadow any speed decrease you might see by switching to THUMB mode.
I think that you should probably just test it out, though, since the speed differences between the ARM and THUMB modes seems to depend on the application and the handset. I have seen a few people that have said that switching to THUMB mode has actually sped up their application, so you really won't know until you put it on the phone and see what happens.
As to the original question on mod size, I don't know if the ARM compiler is an option to you, but using that will usually reduce the size of your application fairly significantly (25-40% in my experience) compared to the GNU compiler.

mk.manju wrote:but my application is a messanger application based on oma standard
which has lot of features and with lot of client/server transactions...I think what SoftEast was saying was that the speed of the code is more important when you have an application where frame rate is important, like in games where a slow frame rate and key response could make it completely unplayable. For something like a messaging application, the frame rate and key response will probably be a secondary concern. And with all of those client/server transactions, things like network latency are probably going to overshadow any speed decrease you might see by switching to THUMB mode.
I think that you should probably just test it out, though, since the speed differences between the ARM and THUMB modes seems to depend on the application and the handset. I have seen a few people that have said that switching to THUMB mode has actually sped up their application, so you really won't know until you put it on the phone and see what happens.
As to the original question on mod size, I don't know if the ARM compiler is an option to you, but using that will usually reduce the size of your application fairly significantly (25-40% in my experience) compared to the GNU compiler.

as i have very few idea of thumb mode compilation any document will be very helpfull for me please....
regards
manju

as i have very few idea of thumb mode compilation any document will be very helpfull for me please....
regards
manju

as i have no idea of thumb mode compilation i need documentaion of it or any link which can help me pleaseeee....
do i need to download thumb mode compiler if so please link??

as i have no idea of thumb mode compilation i need documentaion of it or any link which can help me pleaseeee....
do i need to download thumb mode compiler if so please link??

hi Manju,
You need not to download a new compiler, but instead, you'll have to modify your make file.
Plz see following link for details
http://brewforums.qualcomm.com/showthread.php?p=30517&mode=linear&highli...
~~~~~~~~
SoftEast
~~~~~~~~

hi Manju,
You need not to download a new compiler, but instead, you'll have to modify your make file.
Plz see following link for details
http://brewforums.qualcomm.com/showthread.php?p=30517&mode=linear&highli...
~~~~~~~~
SoftEast
~~~~~~~~

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?).
the above thing i did not get it we generating mak for all da files at same time na guide me through this pleasee

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?).
the above thing i did not get it we generating mak for all da files at same time na guide me through this pleasee

Hi,
I am able to reduce the size of my application usin thumbmode but its getting crashed when i uploaded same on device.
I used the link suggested by softeast but could'nt understand the qoute:
"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?). "
wt modifiation shall i do for not to generate AEEAppGen.o and AEEModGen.o using THUMB .
regards
Ashutosh

Hi,
I am able to reduce the size of my application usin thumbmode but its getting crashed when i uploaded same on device.
I used the link suggested by softeast but could'nt understand the qoute:
"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?). "
wt modifiation shall i do for not to generate AEEAppGen.o and AEEModGen.o using THUMB .
regards
Ashutosh

fine problem resolved

fine problem resolved

Ashutosh Sharma wrote:fine problem resolved
Great ! plz do share the resolutions on Forum so that others also can get rid of the prob.

Ashutosh Sharma wrote:fine problem resolved
Great ! plz do share the resolutions on Forum so that others also can get rid of the prob.

Basically three changes I did in my mak file: (my code is in c and not c++)
1.
In "Software tool and environment definitions"
add following code:
THUMBCC = $(ARMBIN)\tcc
2. my
C code inference rules
look like this
.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(THUMBCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(SRC_FILE)
@echo ---------------------------------------------------------------
.c.mix:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(THUMBCC) -S -fs $(CFLAGS) $(INC) $(OBJ_FILE) $<
@echo ---------------------------------------------------------------
{$(AEESRCPATH)}.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(AEESRCPATH)\$(SRC_FILE)
@echo ---------------------------------------------------------------
/// this all reduced the size of mod file to good extent(30%) but I feel there r some more options that can be given which could reduce it to more .
one of the option is in
-> Compiler code generation options
if i give this one like below then it reuduces more but appliction crashes on phone .. can anyone tell wt mistake I am doing while giving this option,Plz continue this thread so tht if some more changes can be made ..tht will be tremendous help
END = -littleend # Compile for little endian memory architecture
ZAS = -zas4 # Min byte alignment for structures
CODE = $(END) $(ZA) $(ZAS)

Basically three changes I did in my mak file: (my code is in c and not c++)
1.
In "Software tool and environment definitions"
add following code:
THUMBCC = $(ARMBIN)\tcc
2. my
C code inference rules
look like this
.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(THUMBCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(SRC_FILE)
@echo ---------------------------------------------------------------
.c.mix:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(THUMBCC) -S -fs $(CFLAGS) $(INC) $(OBJ_FILE) $<
@echo ---------------------------------------------------------------
{$(AEESRCPATH)}.c.o:
@echo ---------------------------------------------------------------
@echo OBJECT $(@F)
$(ARMCC) $(CFLAGS) $(INC) $(OBJ_FILE) $(AEESRCPATH)\$(SRC_FILE)
@echo ---------------------------------------------------------------
/// this all reduced the size of mod file to good extent(30%) but I feel there r some more options that can be given which could reduce it to more .
one of the option is in
-> Compiler code generation options
if i give this one like below then it reuduces more but appliction crashes on phone .. can anyone tell wt mistake I am doing while giving this option,Plz continue this thread so tht if some more changes can be made ..tht will be tremendous help
END = -littleend # Compile for little endian memory architecture
ZAS = -zas4 # Min byte alignment for structures
CODE = $(END) $(ZA) $(ZAS)