tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Use tcc to make embedded just-in-time compile/interpr


From: Basile Starynkevitch
Subject: Re: [Tinycc-devel] Use tcc to make embedded just-in-time compile/interpreter
Date: Mon, 19 Dec 2011 07:24:43 +0100

On Sun, 18 Dec 2011 22:01:32 +0100
Benoit Gschwind <address@hidden> wrote:

> 
> On 17/12/2011 19:33, Basile Starynkevitch wrote:
> > On Fri, 16 Dec 2011 14:31:31 +0100
> > Benoit Gschwind <address@hidden> wrote:
> > 
> >> Hello,
> >>
> >> I would like to create an embedded C interpreter/compiler.
[...]
> > Other have answered about libtcc.h, but why do you want the user to write 
> > code in C
> > specifically (as opposed to some higher-level scripting language)?
> 
> Why not? for performance, for lightness, for sport. Why use some new
> language when everything is ok with an existing good language? 


I see one reason to avoid C as a scripting language: error handling. Most 
scripting
language gives you a toplevel loop and return to it on error, this is not so 
easily
possible in C (unless the C is generated by your language implementation).

A user which only gets a SIGSEGV on error may be frustrated.

Cheers.


-- 
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***



reply via email to

[Prev in Thread] Current Thread [Next in Thread]