http://stackoverflow.com/questions/5477483/why-are-executable-files-operating-system-dependent
http://en.wikipedia.org/wiki/Loader_(computing)
Suddenly, I thought why windows exe file can't be executed on a linux.
( As you know, suppose that both have same x86 processor. )
The process loaders included in each os are different. And those loaders works differently.
( So, I guess that exe file may not be a real native x86 machine code in fact. )
and the loader connects system call and other libraries by such as dynamic linking.
Think... when you include header files such as stdio.h, only header file is included in the executable file. And, the real function of the header file should be called when executing your executable file. When are those functions called? Maybe, I think the process loader is in charge of it.
'잡담' 카테고리의 다른 글
I've got to go (0) | 2013.05.05 |
---|---|
View, Surfaceview, GDI, Double Buffering (0) | 2013.05.04 |
BlackBerry 사장은 태블릿 카테고리에 의문을 나타낸다 (0) | 2013.05.01 |
윌리엄 알렉산더가 네덜란드 왕으로 취임선서하다 (0) | 2013.05.01 |
For now they’re in a cramped condo they just sold in four short days. (0) | 2013.04.14 |