Webサーバー上の32ビットFORTH

一也 貞方, Ichiya Sadakata · Institutional Repositories DataBase (IRDB) · 2004

32-bit FORTH in a DOS window, "forth32w.exe" and "forthex.exp", have been developed for several years by the author, "forth32w.exe" works in the DOS memory and executes such a task as the 1000-digit calculation of pi at high speed. The purpose of the present study is to make 32-bit FORTH that works in a Web server. First, modifying "forth32w.exe", we made "forth321.exe" that outputs html-tags when starting. Next, we made "forth32.cgi" that has the following perl's sentences : #!c:/usr/bin/perl $str=system("cmd/Cc:/forth/forth321.exe testhtml. blk"); exit; We can start "forth32.cgi" by inputting the following: http://localhost:80/forth32.cgi After starting, "forth321.exe" loads source from "testhtml.blk" and executes it. This "forth32. cgi" is very simple. But, to execute a different source, it is necessary to rewrite "testhtml.blk". To execute FORTH interactively, we have greatly renewed "forth32.cgi". The new "forth32.cgi" works as follows: (1) it opens a html-window that has a textarea and a "Run" button; (2) it waits for input of source (for instance, 1000 bnp-pi bnp.); (3) after source is input and the "Run" button is clicked, "forth32.cgi" outputs the source into the work file "testhtml.blk". Then, "forth321.exe" loads the source from "testhtml.blk" and executes it. (4) it prints the output of FORTH in a new window and waits for close of the window. (5) it goes to (2).

Cited by 0 works.

Authors