Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-03-05 (15:29)
From: Kuba Ober <ober.14@o...>
Subject: Re: [Caml-list] stl?
>> Of course, you can always say that you can use the foreign function
>> interface, but then you lose inlining and speed.
> The same is true of C/C++. You can get much better performance from  
> assembler
> but calling assembler from C or C++ not only costs inlining and  
> speed but
> even functionality because you have an ABI to conform to.

gcc can and does inline user functions written in assembly, as long as  
are wrapped in a C function. It's pretty nice in that respect, actually.

Cheers, Kuba