SDCC
  Is source browsing Possible with SDCC?

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Is source browsing Possible with SDCC?
Jschaenzle
Member
posted August 10, 2010 02:53 PM     Click Here to See the Profile for Jschaenzle   Click Here to Email Jschaenzle     Edit/Delete Message
Is there a way to enable source code browsing when using the SDCC compiler? I want to be able to right click on a variable an select Go To Definition of or Go To Reference to. I know keil supports it but does SDCC?

IP: Logged

frief
Member
posted August 10, 2010 03:30 PM     Click Here to See the Profile for frief     Edit/Delete Message
> Is there a way to enable source code browsing when using the SDCC compiler?

Yes. Look at Silab's application note 198. (AN198 is dated 2005 so probably mildly out of date. It claims "source-level debug" though)

SDCC generates AOMF51 (Intel) format and you can debug within the limits of this format.

(Keil has extended the AOMF51 format but the extensions are not publically available. Discussed elsewhere)

See option --debug for SDCC and the documentation for AOMF51 for your ICD, emulator or simulator.

IP: Logged

vanmierlo
Member
posted August 11, 2010 03:51 AM     Click Here to See the Profile for vanmierlo   Click Here to Email vanmierlo     Edit/Delete Message
It depends on your definition of source code browsing. You can of course view the files in the IDE.You can do source-level-debug which means step through the C code to see the sequence of execution. You can watch the variable contents of simple variables.

But to use Go to Definition or Go to Reference or Add to Watch as Default Type you'll probably need information that is only available in the extended AOMF file. SDCC cannot generate this extended info since the file format is not an open format.

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | MCU User Forum

Have you seen our MCU Knowledge Base?


Ultimate Bulletin Board 5.47b