[Gambas-user] Runtime

Epíleg epileg at ...626...
Thu May 22 13:35:05 CEST 2008


En/na Benoit Minisini ha escrit:
> On mercredi 21 mai 2008, Leonardo Miliani wrote:
>> Kari Laine ha scritto:
>>> Hi,
>>>
>>> I don't understand much about compilers - so I ask...
>>>
>>> Benoit, why you decided to use runtime instead making Gambas a "true"
>>> compiler without the need for a runtime?
>>>
>>> Best Regards
>>> Kari Laine
>> Interesting question...
>> I'm curios too ;-)
> 
> 1) Writing a compiler (like gcc) is too complex for me. Well, not really, but 
> I don't have the time to do that.
> 
> 2) Writing an interpreter is easier, and allow more freedom. Writing its own 
> interpreter is a bit like writing its own CPU. The runtime is that CPU. The 
> last sentence is a shortcut, it is more complex, of course.
> 
> 3) A program written in C/C++ has its "runtime" too, but you don't see it. gcc 
> links it to your program by default. The only difference is that the gcc 
> runtime (let's use that name for libc.so or libgcc_s.so) is always installed 
> by default. Not the Gambas runtime.

Very interesting but, if the Gambas runtime is writen in c/c++, this mean that Gambas add another abstraction layer between compiled gambas program and the hardware. In other words, Gambas runtime has also it's runtime too, the gcc one. Isn't it?

Best regards,
Epíleg.

> 
> 4) Installing the runtime would not be a problem with binary packages 
> correctly done and a modern packaging system.
> 
> Other questions?
> 






More information about the User mailing list