RE: Question for MSP430 with CC compiler

"MK LYE" <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Hi,

Honestly, I'm not using gcc compiler. I'm using Code Composer Essentials for
MSP 430. 

Do you have any idea how to convert the output object file convert to Hex
Format?



Best Regards,
MK LYE
-----Original Message-----
From: Fabian Scheler [mailto:[email protected]] 
Sent: Friday, February 17, 2006 3:21 PM
To: [email protected]
Cc: [email protected]
Subject: Re: [Mspgcc-commits] Question for MSP430 with CC compiler

Hello,

> 1)Shall I know more details on where can I check for the code space?
Linker?
> It's normally display after compiler for other compiler. But I cannot get
it
> from CC.

gcc is a frontend for the compiler, preprocessor and linker. The
linker is creating the final binary so only the linker (should be
called msp430-ld or msp430-elf-ld) knows how much and what parts of
the memory are acutally used. The linker is told by a linker command
file where to put data, read-only data, code and so on, if you want to
user more space than available the linker will complain. If you want
to know the exact memory consumption you can tell the linker to
generate a map file, this can be done by the options '-M' (print the
mapfile to stdout) or '-Map <FILE>' (print the mapfile to file
<FILE>).

> 2)use object Copy? Do I require any tools to do it? Can you show it to me?

There is another program in your gnu-toolchain, it should be called
msp430-objcopy or msp430-elf-objcopy, it helps to convert binary
images. For information invoke this program with the parameter
'--help'

Ciao, Fabian



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.