Action of the stub compiler



next up previous
Next: Bindings and Interfaces Up: MSRPC2 User Manual Previous: MIDDL to C

Action of the stub compiler

The MSRPC2 stub compiler is constructed around the middlc1 front end for MIDDL, and a set of Python modules to implement the back end. It takes as input a MIDDL file, and outputs a grand total of 8 files. An input file called Aubergine.idl would result in the following being generated, described below:

All C header files generated by the stub compiler are protected from multiple inclusion by C preprocessor macros.

The Signature File

The .sif file is generated by the front end of the MIDDL compiler, and is used for keeping track of interface subtyping and type imports. It does not form part of any MSRPC2 code.

The Type Definition Header File

The type definition file contains the following:

The Marshalling Code Header File

The marshalling code header file contains the following:

The Marshalling Code Source File

The marshalling code source file contains the following:

The Server Function Prototype File

The server header file contains the following:

The Server Stub Source File

The server stub file contains the following:

The Client Function Prototype File

The server header file contains the following:

The Client Stub Source File

The client stub file contains the following:



next up previous
Next: Bindings and Interfaces Up: MSRPC2 User Manual Previous: MIDDL to C



Simon Crosby and Richard Hayton