什么是由Windows和Linux生成一个可执行文件之间的差异 [英] what are the differences between an executable generated by windows and linux
问题描述
可能重复:结果
<一href=\"http://stackoverflow.com/questions/2059605/why-an-executable-program-for-a-specific-cpu-does-not-work-on-linux-and-windows\">Why为特定的CPU可执行程序不能在Linux和Windows上工作?
为什么不能在编写Linux程序在Windows中executd?假设我编译包含函数调用是常见的Windows和Linux一个简单的C程序,该编译器生成Windows和Linux下的不同的二进制?
Why can't programs written in linux be executd in windows ? Suppose I compile a simple C program containing function calls that are common to both windows and linux, Does the compiler generate different binary under windows and linux ?
推荐答案
他们用不同的容器格式。
They use different container formats.
大多数Linux可执行文件 ELF文件;所有的Windows可执行文件和DLL是 PE 文件。
Most Linux executables are ELF files; all Windows executables and DLLs are PE files.
这篇关于什么是由Windows和Linux生成一个可执行文件之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!