From: | Roger L Costello <costello@mitre.org> |
Newsgroups: | comp.compilers |
Date: | Mon, 30 Jan 2023 14:36:25 +0000 |
Organization: | Compilers Central |
References: | 23-01-078 <12539_1675045187_63D72943_12539_1744_1_23-01-080@comp.compilers> |
Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="53104"; mail-complaints-to="abuse@iecc.com" |
Keywords: | translator, comment |
Posted-Date: | 30 Jan 2023 12:58:07 EST |
Thread-Topic: | Are there different programming languages that are compiled to the same intermediate language? |
Thread-Index: | AQHZNLg7iiQMH2u2gUKvn3LcnpPChA== |
In-Reply-To: | <12539_1675045187_63D72943_12539_1744_1_23-01-080@comp.compilers> |
Accept-Language: | en-US |
Content-Language: | en-US |
authentication-results: | dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mitre.org; |
I wrote:
>> 2. Create a translator which converts instances of
>> Programming_Language_2 into
>> Programming_Language_1 instances.
Thomas Koenig responded:
> That is also an approach, which works if the
> Programming_Language_2 is sufficiently low-level
Is that a typo? Do you mean Programming_Language_1 is sufficiently low level?
Recall that the approach is to translate instances of Programming_Language_2
to instances of Programming_Language_1.
I will assume you meant Programming_Language_1. So you are saying that the
target language (Programming_Language_1) must be a lower level language than
the source language (Programming_Language_2), right?
John Levine wrote:
> Target-independent intermediate forms work OK
> when the source languages are semantically similar
How to determine if two source languages are semantically similar?
/Roger
[Not to snark too much, but you know when when you see it. C and Fortran
are similar, COBOL and Lisp are not. -John]
Return to the
comp.compilers page.
Search the
comp.compilers archives again.