This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LX51 and Disassembly Output File

I recently upgraded from DK51 to PK51, one of the big reasons was the new 'disassembly output file' option.

However, I can't for the life of me figure out how to get this to work when using ONLY assembler files.

I have a project (and I re-made it from scratch) containing my assembly source files. I have checked the 'pack' option in 'C' (I note that this doesn't relate to assembly files). I have enabled the generation of the '.cod' file. But no '.cod' file is generated!

It appears (I'm guessing) that only if the object file indicates that packing was done, is the '.cod' file made, but since there is no documentation, I don't know for sure.

How can one generate a '.cod' file from a project that is using only Assembly, not C?

Any help is appreciated.

David Erbas-White

Parents
  • Let me re-word the question: how can I turn on the OPTIMIZEADVANCED for the Assembler? This appears to be the only way for the object files generated by the Assembler to be recognized by the linker as needing to generate the disassembly output file.

    Let me repeat the reply I obtained from Keil support.

    The Linker Code Packing optimization requires the OBJECTADVANCED format
    that is currently only available with the C51 Compiler.

    Only C51 means not AX51 or A51.

    try to include a dummy "C" source-file

    From my experience (experiments with the Keil Measure example) this will give linker code packing (& I presume disassembler listing) of the C portions of the code but not the assembler portions. Logically since objectadvance cannot be set in the assembler.

    Perhaps also obviously this thread is I guess being followed by those who would like these features in the assembler.

Reply
  • Let me re-word the question: how can I turn on the OPTIMIZEADVANCED for the Assembler? This appears to be the only way for the object files generated by the Assembler to be recognized by the linker as needing to generate the disassembly output file.

    Let me repeat the reply I obtained from Keil support.

    The Linker Code Packing optimization requires the OBJECTADVANCED format
    that is currently only available with the C51 Compiler.

    Only C51 means not AX51 or A51.

    try to include a dummy "C" source-file

    From my experience (experiments with the Keil Measure example) this will give linker code packing (& I presume disassembler listing) of the C portions of the code but not the assembler portions. Logically since objectadvance cannot be set in the assembler.

    Perhaps also obviously this thread is I guess being followed by those who would like these features in the assembler.

Children