8086 Assembler - Generating Object Code from Operation Codes

I am working on assembler for 8086. My question is how do you convert the hexadecimal opcodes into an executable such as .EXE, .ELF, .COM, a.out, etc. View links / resources for this and if the assembler is executing the linking process or is the OS running automatically?

+3
source share
3 answers

This is quite complicated and usually involves two steps:

  • The assembler reads the assembly code, computes the corresponding machine code and writes it to the object file along with some other information that changes depending on the format of the object file you use.
  • , .

, ; , . , , , , , , (, GNU- () GNU , GNU- (ld) , , )

ELF 4 SV ABI, . COFF PE, ; , -

+7

(), Windows PE (EXE) obj files, Linker .

+1

Source: https://habr.com/ru/post/1758612/


All Articles