Sign in

username:

password:



Not a member?

Search msp430



Search tips

Subscribe to msp430





Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | MSP430 | Code density MSP430 VS HC12


Advertise Here

The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.

Code density MSP430 VS HC12 - erniebarreyro - Aug 7 23:26:27 2009

We are porting a project using an Freescale HC12 to one using the TI MSP430F5419. Both are 128K flash parts. On the HC12, I have no problem fitting the software with ~100KB, but on the TI, the code comes out to be 135KB. Roughly about 35% more. Hence, I can not load the code into the part.

How come? Is this because of the micro part or the compiler. I am using the CCE V3.1 and optimizing for size. Will the Studio Version help?

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )


Re: Code density MSP430 VS HC12 - OneStone - Aug 8 1:27:22 2009

i CAN'T SAY MUCH ABOUT THE COMPILERS contribution to your issue, BUT
when I ported HC12 stuff to MSP430 a few years ago in assembler the MSP
stuff was around 20% smaller in most cases and as much as 40% in some.

Cheers

Al

erniebarreyro wrote:
> We are porting a project using an Freescale HC12 to one using the TI MSP430F5419. Both are 128K flash parts. On the HC12, I have no problem fitting the software with ~100KB, but on the TI, the code comes out to be 135KB. Roughly about 35% more. Hence, I can not load the code into the part.
>
> How come? Is this because of the micro part or the compiler. I am using the CCE V3.1 and optimizing for size. Will the Studio Version help?
>
> ------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: Code density MSP430 VS HC12 - Paul Curtis - Aug 10 5:01:36 2009

On Sat, 08 Aug 2009 03:50:55 +0100, erniebarreyro
wrote:

> We are porting a project using an Freescale HC12 to one using the TI
> MSP430F5419. Both are 128K flash parts. On the HC12, I have no problem
> fitting the software with ~100KB, but on the TI, the code comes out to
> be 135KB. Roughly about 35% more. Hence, I can not load the code into
> the part.
>
> How come?

Lots of reasons.

#1. Code is already subconciouly (or otherwise) tuned for HC12 (e.g. using
unsigned char in preference to int eveywhere).
#2. Incorrect compiler settings (does CCE throw away un-called code or is
a user expected to manually trim?)
#3. Incorrect compiler settings (generating a bulky debug build?)
#4. It's just too big (I doubt that).

> Is this because of the micro part or the compiler. I am using the CCE
> V3.1 and optimizing for size. Will the Studio Version help?

CCS is the new CCE. Try another 430 compiler, you might find they're a
bit more capable. Might be a futile exercise because, err, TI claim to
have the class-leading code generator for the 430. Put it to the test.

Regards,

-- Paul.
------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )

Re: Code density MSP430 VS HC12 - "stefan.hauenstein" - Aug 10 7:32:31 2009

--- In m...@yahoogroups.com, "erniebarreyro" wrote:
>
> We are porting a project using an Freescale HC12 to one using the TI MSP430F5419. Both are 128K flash parts. On the HC12, I have no problem fitting the software with ~100KB, but on the TI, the code comes out to be 135KB. Roughly about 35% more. Hence, I can not load the code into the part.
>
> How come? Is this because of the micro part or the compiler. I am using the CCE V3.1 and optimizing for size. Will the Studio Version help?
>

CCE is your problem.

------------------------------------



(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )