On 2008-02-03, Bulat Ziganshin <[EMAIL PROTECTED]> wrote:
> Hello Duncan,
>
> Sunday, February 3, 2008, 5:24:22 AM, you wrote:
>
>> Ok, so you could create a separate component to produce the .dll / .a
>> from the C code but you'd prefer the convenience of being able to just:
>> c-sources: blah.c
>> and have them included in the project, but built using the MS C
>> compiler.
>
>> So I think we should file a feature request about building C sources
>> using gcc/ms-c directly rather than going via ghc as that would give us
>> the flexibility to use alternative C compilers.
>
> sorry, i think it's not whole story. gcc and msvc are probably
> incompatible in the meaning that you can't link together code
> produced by two compilers. exactly dll should be generated which allow
> to avoids this incompatibility

Well, the whole purpose of the ABI is to allow linking code together
from different compilers.  This doesn't mean there won't be any problems,
but I'd expect the ones that crop up won't *strictly* be because of
the compilers being different, but because of the C libraries being
different.  DLL vs object files shouldn't change things all that much.

-- 
Aaron Denney
-><-

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to