X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=hs-boehmgc.git;a=blobdiff_plain;f=gc-7.2%2Flibatomic_ops%2Fdoc%2FREADME_win32.txt;fp=gc-7.2%2Flibatomic_ops%2Fdoc%2FREADME_win32.txt;h=0fe6f88c1b0d6e0bbbe0338b87d322b525226736;hp=0000000000000000000000000000000000000000;hb=324587ba93dc77f37406d41fd2a20d0e0d94fb1d;hpb=2a4ea609491b225a1ceb06da70396e93916f137a diff --git a/gc-7.2/libatomic_ops/doc/README_win32.txt b/gc-7.2/libatomic_ops/doc/README_win32.txt new file mode 100644 index 0000000..0fe6f88 --- /dev/null +++ b/gc-7.2/libatomic_ops/doc/README_win32.txt @@ -0,0 +1,28 @@ +Most of the atomic_ops functionality is available under Win32 with +the Microsoft tools, but the build process currently is considerably more +primitive than on Linux/Unix platforms. + +To build: + +1) Go to the src directory in the distribution. +2) Make sure the Microsoft command-line tools (e.g. nmake) are available. +3) Run "nmake -f Makefile.msft". This should run some tests, which +may print warnings about the types of the "Interlocked" functions. +I haven't been able to make all versions of VC++ happy. If you know +how to, please send a patch. +4) To compile applications, you will need to retain or copy the following +pieces from the resulting src directory contents: + "atomic_ops.h" - Header file defining low-level primitives. This + includes files from: + "atomic_ops"- Subdirectory containing implementation header files. + "atomic_ops_stack.h" - Header file describing almost lock-free stack. + "atomic_ops_malloc.h" - Header file describing almost lock-free malloc. + "libatomic_ops_gpl.lib" - Library containing implementation of the + above two. The atomic_ops.h implementation + is entirely in the header files in Win32. + +Most clients of atomic_ops.h will need to define AO_ASSUME_WINDOWS98 before +including it. Compare_and_swap is otherwise not available. + +Note that the library is covered by the GNU General Public License, while +the top 2 of these pieces allow use in proprietary code.