[Mono-list] PInvoke Conventions
Miguel de Icaza
19 Jul 2001 21:23:55 -0400
> > Have the CLI runtime or the autoconf process figure the proper sizes
> > of the various POSIX type definitions at compile time. It should also
> > figure out the layout of public structure fields for POSIX structures.
> This assumes that there will be different library builds for each
> platform. This may not be too bad for core stuff, but may be a
> hassle for extension libraries.
This is only the runtime (interpreter or JIT), not the class
libraries. You still need to compile a different runtime for
different systems. The class library would still be the same.
> So, autoconf would need to detect the exact system
> characteristics and then write out marshalling information
> to convert the agreed-upon method signature into the
> system-specific one.
As I said, this is only in the runtime, not in the libraries, that is
why I proposed an external "annotation" system that would be resolved
by the runtime.