Hello, I have a question about KEIL generated listing files (*.lst). My project has several *.c files, and when it generates listing files it makes one *.lst file for each *.c file ! Can someone tell me is there a waty to make KEIL to generate one *.lst file for the whole project ? Best regards, Branislava
Can someone tell me is there a waty to make KEIL to generate one *.lst file for the whole project ? sure, combine all soource into one .c file Erik
You could try the CODE listing option in the linker, which will generate a .cod file similar to the .lst, but which contains the entire program after all linker optimizations.
"My project has several *.c files, and when it generates listing files it makes one *.lst file for each *.c file !" Of course it does! The compiler processes 1 source file at a time; it generates a LST file and an OBJ file from that source file. The Assembler does the same. The Linker takes all the separate OBJ files and links them together - it also produces a listing file (often called a "Map" file). The default for BL51 is .M51; for LX51 it's .MAP If you don't want the individual translation listings, just turn them off!
"You could try the CODE listing option in the linker" LX51 only - not BL51. And then only if you have the right optimisations enabled... ".cod file similar to the .lst" Not really very similar. The .COD file contains a disassembly of the final Linker output; the .LST file contains a lot more than just the equivalent assembler listing...
Thank you all .. I needed some file sutible for simulator.. in the case when there are multiple *.lst files and one .m51 file, and also problem with STARTUP.a51 (which is automaticly included when I select device from the list) it's hard to make parser for creating simulator... Best regards, Branislava
You mean you're building your own simulator? Wouldn't it be better to use the existing Keil simulator, and its AGSI to add your extensions?? Surely, you don't need listing files anyhow - what you need is the Debug Information that's contained in the Object File? That's what the Keil simulator uses, I'm sure!