[fpc-pascal] Re: Object Files

Sven Barth pascaldragon at googlemail.com
Mon Jul 18 19:17:21 CEST 2011


On 18.07.2011 19:07, leledumbo wrote:
>> Are object files platform dependent?
>
> No
>
Depending on the context the author thought in this could have been 
answered with "yes, mostly" as well:
You can't use object files from x86 on ARM or from Windows on Linux (in 
the sense of using the object file from the other platform and trying to 
link and run it on this platform (without emulation)). The last 
restriction basically because the output format is different (PE/COFF vs 
ELF). The object files between e.g. Win32 and WinCE on x86 are 
compatible and the different ELF based systems might be compatible if 
they run on the same platform (don't know that for sure though).
But even if you'd have compatible object files you'd have the problem 
that e.g. the Linux one might contain different assumptions about 
structures and call different functions than the FreeBSD one (thus 
problems when linking or during runtime).

Regards,
Sven



More information about the fpc-pascal mailing list