[net.lang.c] C Interpreters - Any Experiences???

ijk@hou5e.UUCP (Ihor Kinal) (06/24/85)

I've seen ad's for C interpreters from a variety of places (cost
ranging from $129 to $500); do people out there have any significant
experience??  [Note that they all run on MSDOS machines, I haven't
seen ads for VAX based ones].

Key factors are: Any deviations from K&R?  What libraries are supplied?
Can you include assembler programs?  Size limitations of source code?

Of course price is no object { -) }.

If there's enough reponse and interest, I'll summarize and post.

Ihor Kinal
hru3c!ijk  (note that hou5e dies next week, so don't reply via
that path in July).

qtest@whuxl.UUCP (QTEST) (06/26/85)

> I've seen ad's for C interpreters from a variety of places (cost
> ranging from $129 to $500); do people out there have any significant
> experience??  [Note that they all run on MSDOS machines, I haven't
> seen ads for VAX based ones].
> 
> Key factors are: Any deviations from K&R?  What libraries are supplied?
> Can you include assembler programs?  Size limitations of source code?
> 
> Ihor Kinal
*** REPLACE THIS LINE WITH YOUR MESSAGE ***
A C interpreter does exist that runs on UNIX* SV_R2 and Berkeley 4.2, together
with Xenix. For VAX, 3B2/300, 68000 and as well as proprietary architectures.
It will also run on the PC under MD-DOS.

The interpreter is called SMART/C**. What follows is from the data I have
about SMARTC/C:

The SMART/C Environment
*	Fully intergrated editor AND interpreter.
*	One command set.
*	Move between the editor and the interpreter at will.

SMART/C syntax directed editor:
*	Full K & R standard.
*	Vi-like command set.
*	Automatically provides formats blocks, for, case and if statements.

SMART/C Interpreter:
*	Current module can call external modules during interpretation.
*	Has include capability.
*	Totally precompilation - no incremental compile.
*	Can interpret partially defined files allowing for rapid prototyping.
*	Variable speed of interpretation.
*	Multiple windows with user define sizes.

SMART/C Migrator:
*	Allows C code produces with any editor to be interpreted by
	SMART/C.
*	Reformats for readability.

With reference to the Key factors questions above:
SMART/C is a full K & R standard. Currently only the stdio library can
be used. The next release thay say will handle used defined libraries.
SMART/C does not support inline assembly code currently. As far as I am
aware there is no limitation on size of source code. The only limitation
is the disk size.

Costs:
SMART/C is available for the PC running MS-DOS for $495.
The cost increases depending on the size of the machine, up to a VAX780
at, I understand to be $9995.

SMART/C is available from:
	AGS Computers Inc., Advance Product Division, 1139 Spruce Drive,
	Mountainside, NJ, 07092. Phone # 1-800-AGS-1313 & (201)-654-4321.

*UNIX is a trade mark of AT&T Bell Labs.
**SMART/C is a trade mark of AGS Computers Inc.

Comments?
		{ihnp4}whuxl!qtest

sam@delftcc.UUCP (Sam Kendall) (07/01/85)

> A C interpreter does exist that runs on UNIX* SV_R2 and Berkeley 4.2, together
> with Xenix. For VAX, 3B2/300, 68000 and as well as proprietary architectures.
> It will also run on the PC under MD-DOS.
> 
> The interpreter is called SMART/C. What follows is from the data I have
> about SMARTC/C:

...  And what follows is the entire text of a Smart/C brochure.  This
strikes me as a bit too commercial, even for what is ostensibly a third
party replying to a request for information.

I would like to relate my experience with Smart/C.  (I am the project
head for a competing product, The Bcc Compiler -- a checkout compiler,
not an interpreter.)  I saw a demo of Smart/C at the April UNIX Systems
Expo in San Franciso, and it was, in brief, a very slick toy.  The
syntax-directed editor either didn't handle preprocessor macros at all,
or didn't handle macros such as ``#define forever for(;;)'' that do not
expand to subexpressions.  (The salesman had been given a line to handle
complaints about this: he said, "you know, the preprocessor isn't part
of the language." Wrong.)  Printf and scanf were not handled.  Libraries
other than stdio were not handled.  A test program which accessed
storage beyond the end of an array crashed the interpreter.

In the product's favor, it has an impressive user interface.  But in the
state I saw it, it won't run the average 10-line C program.  Before it
can be a real product, it will have to run the average 10,000-line C
program.  And that is quite a gap.  *Most* of our product's development
cycle was spent between these two stages.  (And, yes, our product is
ready and available now.)

I am interested to hear, by mail or news, from anyone who has used a C
interpreter under UNIX that runs a program of reasonable size and
complexity.

------
Sam Kendall		UUCP:	{allegra,cmcl2,ihnp4}!delftcc!sam
Delft Consulting Corp.	ARPA:	delftcc!sam@NYU-CMCL2.ARPA
Phone: (212) 243-8700	USMail:	432 Park Av S, New York, NY 10016

UNIX is a trademark of AT&T Bell Laboratories.  Smart/C is a trademark of
AGS Computers, Inc.  Bcc is a trademark of Delft Consulting Corp.