MIDLC IDL Compiler

Michael B Allen mba2000 at ioplex.com
Sun Jan 16 01:48:42 GMT 2005

On Sun, 16 Jan 2005 11:26:20 +1100
Andrew Tridgell <tridge at osdl.org> wrote:

>  >     } else {
>  >         dst[0] = val & 0xFF; 
>  >         dst[1] = (val >> 8) & 0xFF; 
>  >         dst[2] = (val >> 16) & 0xFF; 
>  >         dst[3] = (val >> 24) & 0xFF; 
>  >     }
> For Samba this would need to be changed to use our IVAL/SVAL
> macros. The reason is that these macros use inline assembly to make it
> fast on platforms that have builtin support for these types (for

Sorry, I just can't use Samba specific stuff. But maybe I'll incorporate
this technique after the code matures and has been tested significantly.

> I'm really starting to suspect that MIDLC won't work out for Samba4,
> at least at the moment. We just have aims that are too different. We
> want lots of extensions to make coding IDL easier, and we want the
> generated code to integrate tightly with the rest of Samba.

Yeah, if you require all the extensions then it's not going to happen. But
I'll follow through and get echo working so you can play with it if
you like.

> I would like to encourage you to test against our IDL files though. We
> have working IDL and test suites for a huge number of functions. It
> would just be silly for you not to be able to interoperate with our
> IDL files.

That's not possible as MIDLC uses MIDL formatted IDL. You would have to
convert all of your interfaces to use MIDLC!

If you didn't know that before then I bet that put's the last nail in
the coffin! :-)


Greedo shoots first? Not in my Star Wars.

More information about the samba-technical mailing list