Hi all, Is it possible to get the C51 compiler output with ELF format ?. In other words Can i extract Map file or listing file with ELF file format using c51 compiler or any other embedded system C compiler? Thanks in advance.
Having written <blah>-to-ELF conversion utilities before, I'd say yes it's possible. If someone asked me to do it, I would certainly pose the question "What is the root requirement?", since I can't imagine the need. But hey, I'm just an ignorant sod and do what I'm asked to do -- if you want it, I can (usually) build it -- for a price ;-)
hi all, More clearly, I want to extract the amount of RAM due to the variables and ROM size from the elf file. How can i do this ? Why iam doing this: I want to automate such calculation for different compilers which produces the elf format. Thanks in advance
Just inspect the linker map file output. There's absolutely no need for ELF here.
"I want to automate such calculation for different compilers which produces the elf format." Keil's is not a compiler which produces the elf format; it provides the information you require directly in the MAP file.
I want to automate such calculation for different compilers which produces the elf format. Is there more than one, I know of none Erik
"Is there more than one, I know of none" Drew mentioned ARM and PPC. "I want to extract the amount of RAM due to the variables and ROM size from the elf file ... for different compilers" While this might be useful for different compilers with the same target, I can't imagine it being at all meaningful to compare an ARM or a PPC with an 8051!?
View all questions in Keil forum