crossplatform linking?

davidl davidl at 126.com
Sun Mar 22 23:44:49 PDT 2009


在 Mon, 23 Mar 2009 13:30:48 +0800,Daniel Keep  
<daniel.keep.lists at gmail.com> 写道:

>
>
> davidl wrote:
>>
>> I don't know why there should be different format object files. Couldn't
>> they be much the same. And the linker finally decide how to link them to
>> platform specific binary?
>>
>> MSVC perhaps has already get some idea of this kind, the link time code
>> generation.
>>
>> I'm just curious why on the X86 arch , we get different object file
>> formats just for platform specific.
>
> I would imagine it's because OPTLINK requires OMF, linux wants ELF and
> Mac OSX wants mach-o (or something).
>
>   -- Daniel

One nice thing of .net is your .net assemblies will not requrie further  
recompilation, and they can run directly by mono on linux.



More information about the Digitalmars-d mailing list