HIWARE, ELF

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

HIWARE, ELF

跳至解决方案
1,987 次查看
leesp
Contributor I

Hi,

I am new to CodeWarrior (for MC9S08)

Can anyone explain to me what HIWARE and ELF absolute files are?

Thanks..

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,162 次查看
NavidadRedivivu
Contributor III

Hello and wellcome to the forum,

 

The Hiware object file format is more or less obsolete and supported only for legacy reasons by Freescale tools. A number of features are not available if using this object file format. As for the ELF absolute file, this is the "executable" file of your application. All the relocations are solved and the file is ready to be downloaded on the board/simulator. It is generated either by the linker or directly by the assembler. If you are using the assembler to generate the absolute file you will learn that you are not allowed to have any kind of relocatable code/data in your assembly file, meaning that the assembler must be able to precisely determine the memory location of every symbol (i.e. you have to put everything under ORG directives). As far as I remember CW ships with absolute assembly examples, you can use them as reference.

 

Hopefully this answers your question. If you are referring to the file format itself, it follows the ELF standard: http://refspecs.freestandards.org/elf/elf.pdf

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,163 次查看
NavidadRedivivu
Contributor III

Hello and wellcome to the forum,

 

The Hiware object file format is more or less obsolete and supported only for legacy reasons by Freescale tools. A number of features are not available if using this object file format. As for the ELF absolute file, this is the "executable" file of your application. All the relocations are solved and the file is ready to be downloaded on the board/simulator. It is generated either by the linker or directly by the assembler. If you are using the assembler to generate the absolute file you will learn that you are not allowed to have any kind of relocatable code/data in your assembly file, meaning that the assembler must be able to precisely determine the memory location of every symbol (i.e. you have to put everything under ORG directives). As far as I remember CW ships with absolute assembly examples, you can use them as reference.

 

Hopefully this answers your question. If you are referring to the file format itself, it follows the ELF standard: http://refspecs.freestandards.org/elf/elf.pdf

0 项奖励
回复