linuxwindowselfportable-executableexecutable-format

What are the differences between PE and ELF binary formats?


What is the difference between Windows PE binary and Linux ELF binary formats? How does a compiler convert a file into the specified format of the operating system when it should only create the assembly language equivalent of the source code? Could somebody explain in brief?


Solution

  • PE and ELF are just different formats for describing similar information. Neither of them "access the processor". Both just contain information that is used by an OS to load binary executables. The processor doesn't really care how executable code gets loaded.