Monday, March 17, 2008

ImageCraft V7 Symbol Importing for MSP430static

by Travis Goodspeed <travis at utk.edu>
at the Extreme Measurement Communications Center
of the Oak Ridge National Laboratory

I just committed r38 of msp430static which adds support for importing symbols from ImageCraft V7 for MSP430. A short example follows.

I'll use the following C code, but any will suffice.
void main(){
int x=0xFFFF;
x+=1;
x+=0xFFFF;
x+=abs(5);
}
Compiling it yields many files. The two of interest are FOO.hex and FOO.mp. The former is imported by converting it to msp430-elf and dumping the resulting ELF file.
karen% msp430-objcopy -I ihex -O elf32-msp430  FOO.hex foo.exe
karen% msp430-objdump -D foo.exe | m4s init
karen%
Symbols are then imported with the .symbols.import.ic7 macro.
karen% m4s .symbols.import.ic7 <FOO.mp
karen%

At this point, msp430static knows the name of every function in my image. Here is the callgraph of my program above.


Note that my examples are in Linux. ICC 7 works perfectly as both an IDE and compiler under Wine.

9 comments:

Travis Goodspeed said...

I've also added .input.lib.ic7, which imports an ICCV7 .a library. Use .lib.import.ic7 to import all ICC libraries from /opt/iccv7430.

Puremelda said...

Many students are undecided about the best nursing essay writing help company to deal with due to the high number of companies that offer similar services.

Jim Rhodes said...
This comment has been removed by the author.
jeet said...

Hi,
Great & valuable post.
sales tracking software free
Sales Tracking System
Sales Tracking Excel
Sales Tracking Software for Field Sales Teams
open source sales tracking software
Best Sales Tracking Software For Small Business

tanuhealthdoctor said...

Awesome blog. I enjoyed reading your articles.
this website

Unknown said...

El kit contiene:
1 camiseta de manga corta
1 breve
1 par de calcetines
1 toalla

Embalaje: 40 kits / caja
Tamaño: XXL
Precio: Euro 2,00 / Kit "Kit de ropa interior de algodón de verano con amianto
"

Domyclassesnow said...

We offer you Take My Classes for Me by Do My Classes Now services to the customers at pocket friendly rates. We have designed our pricing plans in such a way that every student could afford. So stop worrying about the budget. Give us a call and we will try to accommodate you in the best possible

Selena Johsons said...


BookMyEssay offers invaluable assistance for communication techniques assignment help. Their experts guide students in mastering effective communication skills through insightful assignments. Whether it's interpersonal, organizational, or public speaking, BookMyEssay provides comprehensive support to ensure academic success. Trust them to excel in your communication techniques assignments.

Jewel Galore said...

Jewelgalore showcases the beauty of jewellery from Pakistan . Explore their collection to discover intricately designed pieces that reflect the cultural richness and craftsmanship of the region.