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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to