diff options
| author | Thomas Schwinge <thomas@codesourcery.com> | 2012-05-24 23:08:09 +0200 |
|---|---|---|
| committer | Thomas Schwinge <thomas@codesourcery.com> | 2012-05-24 23:08:09 +0200 |
| commit | 2910b7c5b1d55bc304344b584a25ea571a9075fb (patch) | |
| tree | bfbfbc98d4c0e205d2726fa44170a16e8421855e /microkernel/mach/mig | |
| parent | 35b719f54c96778f571984065579625bc9f15bf5 (diff) | |
Prepare toolchain/logs/master branch.
Diffstat (limited to 'microkernel/mach/mig')
| -rw-r--r-- | microkernel/mach/mig/documentation.mdwn | 84 | ||||
| -rw-r--r-- | microkernel/mach/mig/documentation/dealloc.mdwn | 15 | ||||
| -rw-r--r-- | microkernel/mach/mig/documentation/servercopy.mdwn | 23 | ||||
| -rw-r--r-- | microkernel/mach/mig/gnu_mig.mdwn | 28 | ||||
| -rw-r--r-- | microkernel/mach/mig/gnu_mig/building.mdwn | 103 | ||||
| -rw-r--r-- | microkernel/mach/mig/gnu_mig/building/discussion.mdwn | 16 |
6 files changed, 0 insertions, 269 deletions
diff --git a/microkernel/mach/mig/documentation.mdwn b/microkernel/mach/mig/documentation.mdwn deleted file mode 100644 index 7d4f1eca..00000000 --- a/microkernel/mach/mig/documentation.mdwn +++ /dev/null @@ -1,84 +0,0 @@ -[[!meta copyright="Copyright © 2002, 2003, 2005, 2007, 2008, 2009, 2010 Free -Software Foundation, Inc."]] - -[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable -id="license" text="Permission is granted to copy, distribute and/or modify this -document under the terms of the GNU Free Documentation License, Version 1.2 or -any later version published by the Free Software Foundation; with no Invariant -Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license -is included in the section entitled [[GNU Free Documentation -License|/fdl]]."]]"""]] - -This is a small collection of links to external documents describing the *Mach -Interface Generator* used by GNU Mach. - - -# MIG and C Thread Programming - -A tutorial which demonstrates the use of the C Threads library primitives in -writing a multithreaded program and the use of the Mach Interface Generator -(MIG) to generate remote procedure calls for inter-process communication. Like -its companion tutorial, it is based on the Mach 2.5 system. However, the -concepts are applicable to Mach 3.0 user level programming. - -Linda R. Walmer and Mary R. Thompson. *A Programmer's Guide to the Mach User -Environment*. [PostScript -](http://www.cs.cmu.edu/afs/cs/project/mach/public/doc/unpublished/machuse.ps), -[Doc](http://www.cs.cmu.edu/afs/cs/project/mach/public/doc/unpublished/machuse.doc). -February 1988. School of Computer Science, Carnegie Mellon University. - -An ftp directory containing the [mig programming -examples](http://www.cs.cmu.edu/afs/cs/project/mach/public/doc/unpublished/mig_example) -for this tutorial. - -Slides to Rich Drave's talk on MIG, on November 21, 1991: -[PostScript](http://www.cs.cmu.edu//afs/cs/project/mach/public/doc/unpublished/internals_slides/Mig/root.ps), -[TeX](http://www.cs.cmu.edu//afs/cs/project/mach/public/doc/unpublished/internals_slides/Mig/slides.tex). - - -# Roots - -Mig is an implementation of a subset of the Matchmaker **language**. - -"Matchmaker is a language for specifying and automating the generation of -multilingual inter-process communication interfaces. MIG is an interim -implementation of a subset of the Matchmaker language that generates C and C++ -remote procedure call interfaces for inter-process communication between Mach -tasks." - -Richard P. Draves, Michael B. Jones, Mary R. Thompson, *MIG - THE MACH -INTERFACE GENERATOR*. -[ps](http://www.cs.cmu.edu/afs/cs/project/mach/public/doc/unpublished/mig.ps), -[doc](http://www.cs.cmu.edu/afs/cs/project/mach/public/doc/unpublished/mig.doc). -November 1989. Department of Computer Science, Carnegie-Mellon University. - - -# Related Work - -See the citations about [Mach and matchmaker: kernel and language support for -objectoriented distributed -systems](http://citeseer.ist.psu.edu/context/93073/0). "M. B. Jones and -R. F. Rashid, *Mach and matchmaker: kernel and language support for -objectoriented distributed systems*, Proceedings of the Conference on -Object-Oriented Programming Systems, Languages, and Applications, October 1986, -pp. 67--77." - - -# Further Relevant Documentation - - * The [[GNU_Mach_Reference_Manual|gnumach/reference_manual]], espacially - [Chapter 4, Inter Process - Communication](http://www.gnu.org/software/hurd/gnumach-doc/Inter-Process-Communication.html). - - * OSF's [Server Writer's Guide (ps)](http://www.cs.cmu.edu/afs/cs/project/mach/public/doc/osf/server_writer.ps) - [Server Writer's Guide (pdf)](http://shakthimaan.com/downloads/hurd/server_writer.pdf) - - * OSF's [Server Writer's Interfaces (ps)](http://www.cs.cmu.edu/afs/cs/project/mach/public/doc/osf/server_interface.ps) - [Server Writer's Interfaces (pdf)](http://shakthimaan.com/downloads/hurd/server_interface.pdf) - - * Flags: - - * [[dealloc_and_dealloc[]|dealloc]] - * [[ServerCopy]] - - * MIG *in action*: [[hurd/io_path]]. diff --git a/microkernel/mach/mig/documentation/dealloc.mdwn b/microkernel/mach/mig/documentation/dealloc.mdwn deleted file mode 100644 index b627b532..00000000 --- a/microkernel/mach/mig/documentation/dealloc.mdwn +++ /dev/null @@ -1,15 +0,0 @@ -[[!meta copyright="Copyright © 2008, 2009 Free Software Foundation, Inc."]] - -[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable -id="license" text="Permission is granted to copy, distribute and/or modify this -document under the terms of the GNU Free Documentation License, Version 1.2 or -any later version published by the Free Software Foundation; with no Invariant -Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license -is included in the section entitled -[[GNU Free Documentation License|/fdl]]."]]"""]] - -The [[GNU_Mach_Reference_Manual|gnumach/reference_manual]] describes the -`dealloc` flag in [Chapter 4.2.4, -Memory](http://www.gnu.org/software/hurd/gnumach-doc/Memory.html). - -What exactly is `dealloc[]` (`hurd/fs.defs:dir_readdir`)? diff --git a/microkernel/mach/mig/documentation/servercopy.mdwn b/microkernel/mach/mig/documentation/servercopy.mdwn deleted file mode 100644 index 8abf9b07..00000000 --- a/microkernel/mach/mig/documentation/servercopy.mdwn +++ /dev/null @@ -1,23 +0,0 @@ -[[!meta copyright="Copyright © 2008 Free Software Foundation, Inc."]] - -[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable -id="license" text="Permission is granted to copy, distribute and/or modify this -document under the terms of the GNU Free Documentation License, Version 1.2 or -any later version published by the Free Software Foundation; with no Invariant -Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license -is included in the section entitled -[[GNU Free Documentation License|/fdl]]."]]"""]] - -For IN args. If set it... - - * removes the `__mig_deallocate` for OOL IN data, which is usually done after - the implementation has been called; - - * adds a `boolean_t NAMESCopy` for the IN arg `NAME` to indicate whether the - data will persist nevertheless (OOL case) or has to be copied by the - implementation (inline case). - -Cf., [[translator/exec]] server, `exec.defs`. - -I.e., the IN args' memory region (OOL case) persists after the implementation -has returned. diff --git a/microkernel/mach/mig/gnu_mig.mdwn b/microkernel/mach/mig/gnu_mig.mdwn deleted file mode 100644 index 0de1bd67..00000000 --- a/microkernel/mach/mig/gnu_mig.mdwn +++ /dev/null @@ -1,28 +0,0 @@ -[[!meta copyright="Copyright © 2001, 2006, 2008, 2009, 2010 Free Software -Foundation, Inc."]] - -[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable -id="license" text="Permission is granted to copy, distribute and/or modify this -document under the terms of the GNU Free Documentation License, Version 1.2 or -any later version published by the Free Software Foundation; with no Invariant -Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license -is included in the section entitled [[GNU Free Documentation -License|/fdl]]."]]"""]] - -GNU MIG is the GNU distribution of the -[[Mach_3.0_interface_generator_*MIG*|mig]], as maintained by the GNU Hurd -developers for the GNU project. - -You need this tool to compile the GNU Mach and GNU Hurd distributions, and to -compile the GNU C library for the Hurd. Also, you will need it for other -software in the GNU system that uses Mach-based -[[inter-process_communication|ipc]]. - -GNU MIG is fully compatible with [[OSF_MIG|mig]]. - -Like its predecessor, it can only generate C code, that has to be compiled and -linked to client and server programs respectively ([[!taglink -open_issue_mig]]). - - * [[Building]] - building (and obtaining) GNU MIG - * [[Open Issues|tag/open_issue_mig]] diff --git a/microkernel/mach/mig/gnu_mig/building.mdwn b/microkernel/mach/mig/gnu_mig/building.mdwn deleted file mode 100644 index e7d3c150..00000000 --- a/microkernel/mach/mig/gnu_mig/building.mdwn +++ /dev/null @@ -1,103 +0,0 @@ -[[!meta copyright="Copyright © 2006, 2007, 2008, 2011 Free Software Foundation, -Inc."]] - -[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable -id="license" text="Permission is granted to copy, distribute and/or modify this -document under the terms of the GNU Free Documentation License, Version 1.2 or -any later version published by the Free Software Foundation; with no Invariant -Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license -is included in the section entitled [[GNU Free Documentation -License|/fdl]]."]]"""]] - -# <a name="Building_the_Mach_Interface_Gene"> Building the Mach Interface Generator from Source </a> - -If you want to build the Mach Interface Generator yourself instead of just -using a pre-built package, follow these instructions. - -## <a name="Getting_the_Source_Code"> Getting the Source Code </a> - -You can chose between getting the [sources from the developers' -RCS](http://git.savannah.gnu.org/cgit/hurd/): - - $ git clone http://git.savannah.gnu.org/cgit/hurd/mig.git/ - -... or (if you are working on a Debian system) get the sources that are used for the -[current Debian mig package](http://packages.debian.net/source/unstable/mig): - - $ apt-get source mig - -Please see the Debian [[hurd/running/debian/FAQ]] before using _apt-get source_. - -The unpacked source tree is around 1 MiB, and the build tree also is around 1 MiB. - -## <a name="_on_Debian_systems"> On Debian Systems: </a> - -### <a name="Preparing_for_the_Build"> Preparing for the Build </a> - -Building MIG requires the *build-essential* and *fakeroot* packages, -and some additional dependencies specified by the mig source package: - - # apt-get install build-essential fakeroot - # apt-get build-dep mig - -### <a name="Building_and_Installing"> Building and Installing </a> <a name="_a_deb_file"> ... a _.deb_ file </a> - -Change into the directory with the downloaded / unpacked MIG sources: - - $ cd mig-X.X.X.XX - -Start the build process: - - $ dpkg-buildpackage -us -uc -b -rfakeroot - -This will create a _.deb_ package in the parent directory, -which you can then install on your system. - -## <a name="_on_non_Debian_systems"> On non-Debian Systems: </a> - -### <a name="Preparing_for_the_Build"> Preparing for the Build </a> - -Building the Mach Interface Generator requires a C compiler, a standard 32 bit -C library (with corresponding header files), your favourite flavor of awk -(gawk), yacc (bison), lex (flex) and make. - -Additionally, you need to have GNU Mach's header files installed. See -[[building GNU Mach|mach/gnumach/building]] about how to do that, then come back here. - -### <a name="Building_and_Installing"> Building and Installing </a> - -First, generate the configuration files: - - $ cd mig - $ autoreconf --install - -The Mach Interface Generator has to be built in a separate build directory: - - $ mkdir build - $ cd build - -Find the base directory where you installed GNU Mach's header files and where -you now intend to install the Mach Interface Generator (e.g. _~/gnu_), and run -configure: - - $ GNU=~/gnu - $ TARGET_CPPFLAGS=-I"$GNU"/include ../configure --prefix="$GNU" - -If you are building on a 64 bit machine, you need to add a --host option: - - $ GNU=~/gnu - $ TARGET_CPPFLAGS=-I"$GNU"/include ../configure --prefix="$GNU" --host=i686-unknown-linux-gnu - -Build and install the Mach Interface Generator into _$GNU_ (i.e. _~/gnu/_ in our example): - - $ make all install - -To make your _mig_ binary easily available, you should append something like -the following to e.g. your _~/.bash\_profile_: - - PATH=~/gnu/bin:$PATH - export PATH - -If you already have e.g. _~/bin_ in your _$PATH_, you could also create a symbolic link: - - $ ln -s ~/gnu/bin/mig ~/bin/ diff --git a/microkernel/mach/mig/gnu_mig/building/discussion.mdwn b/microkernel/mach/mig/gnu_mig/building/discussion.mdwn deleted file mode 100644 index d7636158..00000000 --- a/microkernel/mach/mig/gnu_mig/building/discussion.mdwn +++ /dev/null @@ -1,16 +0,0 @@ -[[!meta copyright="Copyright © 2011 Free Software Foundation, Inc."]] - -[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable -id="license" text="Permission is granted to copy, distribute and/or modify this -document under the terms of the GNU Free Documentation License, Version 1.2 or -any later version published by the Free Software Foundation; with no Invariant -Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license -is included in the section entitled [[GNU Free Documentation -License|/fdl]]."]]"""]] - -# Non-cross-compiling - -[[!tag open_issue_mig]] - -[[samuelthibault]] mentioned that I should make clear what compiler options, etc. are only needed if compiling on a 64 bit computer. However, I don't know if the --host=i686... option is needed, here and when making gnumach, in case there may be some other default on 32 bit computers? --[[sudoman]] - |
