Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

asm file output instead of hex in k*eil project??

Status
Not open for further replies.

7rots51

Advanced Member level 4
Joined
May 17, 2002
Messages
1,184
Helped
25
Reputation
50
Reaction score
12
Trophy points
1,318
Activity points
9,651
Hello
I have written a program in C in k**eil for 8*051 can I get the output file in assembly instead of hex file?(the assembly of the total project not a file of the project).

if it is not possible how can I get it by trying manually?
bye
 

usbman

Advanced Member level 4
Joined
Sep 22, 2002
Messages
118
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Location
Germany
Activity points
1,019
I think this is not possible for a complete project.
The only way might be disassembler.

For single files you can enable ASM Output in the listfile

Or you can use the SRC Option

usbman
 

dsp_

Member level 3
Joined
Mar 2, 2002
Messages
58
Helped
3
Reputation
6
Reaction score
0
Trophy points
1,286
Location
right here ... right now ...
Activity points
525
what you want to do is possible with
#pragma src
the c compile generates an .src file with the asm code it it and the c code as comments

u could also enable in the target options -> listing -> c compiler listing -> assembly code
checkbox
for the assembly code in the listing

HTH
dsp_
 

7rots51

Advanced Member level 4
Joined
May 17, 2002
Messages
1,184
Helped
25
Reputation
50
Reaction score
12
Trophy points
1,318
Activity points
9,651
Hello
I mean assembly of the whole of project not at file level.
The disassembler have problems with lookup tables and constants that are stored in code memory.
bye
 

tom324

Full Member level 1
Joined
Jun 26, 2001
Messages
98
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Croatia
Activity points
672
7rots51 said:
I mean assembly of the whole of project not at file level.
It is not possible since K*eil *.lib files are without source code (just an object archives), so one can not get ASM out of them without using disassembler.

BTW, why do you need assembler of whole project? It is BAD IDEA to write code in C, then generate ASM, modify it and then compile all and link the project. _ALMOST_ all what do you need can be done in pure C. If you have specific question ask and I'll try to answer it. Just do not mix C and ASM without VERY GOOD reason.

Regards,
Tom
 

usbman

Advanced Member level 4
Joined
Sep 22, 2002
Messages
118
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Location
Germany
Activity points
1,019
I am working on an OMF51 Viewer wich will also be able to disasemble.
The problem is that OMF2 is propertary to Keil.
So I don't have any infos on various fields in the OMF records.

usbman
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top