On Mon, Aug 09, 2010 at 12:41:17AM +0200, John Smith wrote:
> Hi,
>
> Is it possible to generate a file which containts line number and
> program counter information?
> I have a project (named noname) which contains test1.c. I successfully
> generated the hex file but the lst file is test1.lst not noname.lst so
> the line number and program counter pairs are not correct.
>
> Thanks
>
If I understand your question correctly (i.e. you want the listing file
to be post link so the PC value listed is the absolute memory location useful
for debuggin) then you are looking for the .rst files instead of .lst files.
I think the compiler (actually probably the linker) generates them
automatically by default (but I have a couple of extra compiler flags in my
make file at the moment so you may need to read the documentation to find a
flag :-)).
Peter Van Epp
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user