Path: csiph.com!1.us.feeder.erje.net!feeder.erje.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Roger L Costello Newsgroups: comp.compilers Subject: Re: Are there different programming languages that are compiled to the same intermediate language? Date: Mon, 30 Jan 2023 14:36:25 +0000 Organization: Compilers Central Sender: johnl@iecc.com Approved: comp.compilers@iecc.com Message-ID: <23-01-087@comp.compilers> References: <23-01-078@comp.compilers> <12539_1675045187_63D72943_12539_1744_1_23-01-080@comp.compilers> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit 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 X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com 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; Xref: csiph.com comp.compilers:3352 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]