1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

ASM file from keil c program?

Discussion in '8051/8951' started by Navid, Jan 31, 2015.

  1. Navid

    Navid New Member

    Joined:
    Jan 9, 2005
    Messages:
    17
    Likes:
    0
    Hi friends
    How can I get ASM file from my keil C51 program? I have list file and i see asm program on it but I want asm file itself!!
    Is there anyway to get asm file of my c program?
    Regards
     
  2. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,165
    Likes:
    910
    Location:
    Rochdale UK
    ONLINE
    I don't know about keil, but almost all compilers spit out an ASM extension... If you look through the documentation, you'll probably find a command line switch..
     
    • Thanks Thanks x 1
  3. Navid

    Navid New Member

    Joined:
    Jan 9, 2005
    Messages:
    17
    Likes:
    0
    Thanks
    I found that i can right click on the c file and select options for file and check src assembler file. but i have still a problem, some asm routines are not on code and it use extrn code 'routine'
    I do't now where can i but that routines, for example i want routine of 16 bit division that i see it on debuge mode on lst file but it's not on src file!!
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Wade Hassler

    Wade Hassler Member

    Joined:
    Jun 4, 2009
    Messages:
    152
    Likes:
    11

    The 16-bit division code, and much else, is in an object-code library that you did not write.
    Some compiler writers/vendors do not want to give that code away.
    If you really can see the assembly-level code in the *.lst file, then it might be some work to obtain it in (re-)compilable form, but it can be done.
     
    • Thanks Thanks x 1

Share This Page