Re: Newbie question: What is the importance for a compiler to be able to compi

Hans-Peter Diettrich <DrDiettrich1@aol.com>
Wed, 20 May 2009 21:24:46 +0200

          From comp.compilers

Related articles
[8 earlier articles]
Re: Newbie question: What is the importance for a compiler to be able pertti.kellomaki@tut.fi (Pertti Kellomaki) (2009-05-20)
Re: Newbie question: What is the importance for a compiler to be able jeremy.wright@microfocus.com (Jeremy Wright) (2009-05-20)
Re: Newbie question: What is the importance for a compiler to be able torbenm@pc-003.diku.dk (2009-05-20)
Re: Newbie question: What is the importance for a compiler to be able armencho@gmail.com (2009-05-20)
Re: Newbie question: What is the importance for a compiler to be able marcov@snail.stack.nl (Marco van de Voort) (2009-05-20)
Re: Newbie question: What is the importance for a compiler to be able jeremy.wright@microfocus.com (Jeremy Wright) (2009-05-20)
Re: Newbie question: What is the importance for a compiler to be able DrDiettrich1@aol.com (Hans-Peter Diettrich) (2009-05-20)
Re: Newbie question: What is the importance for a compiler to be able blog@rivadpm.com (alextangent) (2009-05-21)
Re: Newbie question: What is the importance for a compiler to be able barry.j.kelly@gmail.com (Barry Kelly) (2009-05-22)
| List of all articles for this month |

From: Hans-Peter Diettrich <DrDiettrich1@aol.com>
Newsgroups: comp.compilers
Date: Wed, 20 May 2009 21:24:46 +0200
Organization: Compilers Central
References: 09-05-086 09-05-089
Keywords: Pascal, practice
Posted-Date: 21 May 2009 19:42:21 EDT

kenney@cix.compulink.co.uk schrieb:


> Delphi distributions for example
> includes the complete source code of the compiler and the components.


Sorry, Delphi only comes with the source code of the libraries, the
compiler code is a secret. Perhaps you mean FreePascal, not Delphi?
The Delphi compiler possibly is written in C/C++ (CBuilder), as have
been parts of the libraries. At least Delphi 4 could not recompile the
libraries, because the supplied library code contained some C
snippets. In detail the libraries can be compiled only with an
specific compiler, which has built in some fundamental
definitions. Now the question is: how many compilers are involved, and
how many steps are required, to compile Delphi itself?


Delphi also is an example for bad portability. One of the show
stoppers with the Linux version (Kylix) was the IDE, which required
Wine and special kernel versions, that are far outdated now. But the
reason herefore most probably is the incomplete port of the Win32
based VCL into the Qt based CLX library, not the compiler code itself.


But all these are more arguments against closed source code, than for
the choice of the language for the implementation of an compiler.




> A different example is Forth. While you can write Forth systems in
> another language such as C a large proportion of them have a minimum
> word set in machine code and the rest is written in Forth.


Forth is more an example for the efficient use of a virtual
machine. The Forth "compiler" is only a macro assembler for that
VM. The "language" can be extended by such macros, so that the system
can be instructed to accept and interpret (or compile) arbitrary
languages.


DoDi



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.