We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I've been examining the listing files generated and one thing I would like to see in a file is what is entitled as CONSTANT. I've played with the settings and as yet cannot get the data to be listed with the assembly listing. I've looked at the compiler and assembler and I'm a little baffled why it doesn't include the const data in the listing file. If there is an option to this I haven't been able to find it. I've looked at http://www.keil.com/support/man/docs/c51/c51_cm_lstfile.htm which of course didn't mention constant space.
So if anyone has a clue on how to view the generated const data in code space. Let me know.
Stephen
I suspect you think that the keyword 'const' means 'store this as a constant in code space'. If this is the case then what you are looking for is the keyword 'code'.Actually I was referring to the output listing file (and pretty much only that). It specifies CODE and CONSTANT under module information see http://www.keil.com/support/man/docs/c51/c51_cm_lstfile.htm. What I am specifically looking for is the CONSTANT information shown as data bytes or however which they specify it.
The assembly is fine I want the data bytes right now, and I can't seem to find where that information is. I have a feeling that Keil just didn't think anyone would be interested in the data they generate from compilation in a listing file from the compiler. INSTEAD I have to force it to generate assembly.
DB 'O' ,'2' ,'A' ,'2' ,000H DB 001H DB 000H,000H,000H,000H ; 0.000000 DB 000H,000H,000H,000H ; 0.000000 DB 03FH,08CH,0CCH,0CDH ; 1.100000 DB 03FH,0C0H,000H,000H ; 1.500000 DB 041H,0A7H,099H,09AH ; 20.950001 DB 041H,098H,000H,000H ; 19.000000 DB 041H,0B8H,000H,000H ; 23.000000 DB '%' ,'V' ,000H DB 001H
I would rather not do it that way but it looks like that is currently my only choice.