From: | "Tony" <tony@my.net> |
Newsgroups: | comp.compilers |
Date: | Sat, 14 Feb 2009 06:35:15 -0600 |
Organization: | Compilers Central |
References: | 09-02-021 09-02-035 |
Keywords: | assembler |
Posted-Date: | 14 Feb 2009 16:46:46 EST |
"Hans Aberg" <haberg_20080406@math.su.se> wrote in message
> marco.m.petersen@gmail.com wrote:
>> I mean, if you wrote a program that converts code from BASIC to C++
>> then calls another compiler to do the compilation process, wouldn't
>> that be considered as a compiler?
>
> Yes, formally a compiler just translates one computer language into
> another. For example, an assembler translates into the machine code
> language.
I would say that is simply translation and not compilation because there is
no intermediate representation. The IR (and the creation of it via
lex/parse/semantic analysis before code generation) is what I think
distinguishes compilers from interpreters and translators.
Tony
Return to the
comp.compilers page.
Search the
comp.compilers archives again.