Open Source Projects.

Download the source for JSMiniNSPR Runtime v1.0.3

JSMiniNSPR-1.0.3.zip

JavaScript Mini Netscape Portable Runtime

A subset of the Netscape Portable Runtime (NSPR) library specifically designed to allow the building of SpiderMonkey as a static library.

Background

The NSPR library is a DLL based library written in C by the Mozilla Foundation. This library is used directly by another Mozilla project, the SpiderMonkey JavaScript engine. SpiderMonkey uses NSPR to handle platform independent functions such as atomic operations, thread synchronization primitives and thread local storage.

Because of its architectural underpinnings, the NSPR DLL cannot currently be compiled as a static library. In addition, compiling the NSPR library on Windows platforms requires the use of a complicated build system involving CYGWIN the command line.

Goals

The goal of JSMiniNSPR is to facilitate the building of the SpiderMonkey engine as a static library on Windows using the Visual C++ compiler without creating a dependency on the exiting NSPR or CYGWIN.

The JSMiniNSPR library is a static library designed to give SpiderMonkey everything it needs to compile in a thread-safe manner (using JS_THREADSAFE). JSMiniNSPR only implements the subset of NSPR functionality required by SpiderMonkey.

Compiler Support

Currently JSMiniNSPR is provided with source code and a VC++ 2005 project file. JSMiniNSPR could very easily be made to compile on Linux using GCC or other compilers. We are looking for help in porting this library to Linux as well as providing the appropriate project file for compilers in that environment.

Download

Download the source.  JSMiniNSPR-1.0.3.zip (v1.0.3)