Sunday, June 18, 2006

SpiderMonkey Javascript for Minix

I've ported the Mozilla SpiderMonkey Javascript engine to Minix. I used the latest CVS from branch JS_1_7_ALPHA_BRANCH, which contains some of the new Javascript 1.7 enhancements like generators and destructuring assignments.

The files are available as:


I've raised a bug in Mozilla's bugzilla for the port and it contains the patches that can be applied to the original SpiderMonkey source.

To build from source on Minix you'll need GNU gcc and GNU make installed. You also need /usr/gnu/bin and /usr/gnu/i386-pc-minix/bin on your path:
export PATH=/usr/gnu/i386-pc-minix/bin:/usr/gnu/bin:$PATH

You can then build from the 'src' directory with:
gmake -f Makefile.ref

I tried to use readline support but when it tried to link it failed saying that libreadline.a was corrupt. I also tried the inbuilt 'editline' support but that failed to link due to virtual memory being exhausted. I'll investigate that a bit further as it's a bit hard to use when there's no command line history or anything.

Categories: ,

0 Comments:

Post a Comment

<< Home