Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Be there. Aloha." -- Steve McGarret, _Hawaii Five-Oh_


devel / comp.lang.c / Re: Does anyone has samples of C code generated by CFront compiler?

SubjectAuthor
* Does anyone has samples of C code generated by CFront compiler?Thiago Adams
+* Re: Does anyone has samples of C code generated by CFront compiler?Scott Lurndal
|+* Re: Does anyone has samples of C code generated by CFront compiler?Thiago Adams
||`- Re: Does anyone has samples of C code generated by CFront compiler?Scott Lurndal
|`- Re: Does anyone has samples of C code generated by CFront compiler?bart c
+* Re: Does anyone has samples of C code generated by CFront compiler?Scott Lurndal
|`- Re: Does anyone has samples of C code generated by CFront compiler?Scott Lurndal
`- Re: Does anyone has samples of C code generated by CFront compiler?Kaz Kylheku

1
Does anyone has samples of C code generated by CFront compiler?

<5ee93c64-c28f-408c-87a4-19a39b4ce1adn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=22540&group=comp.lang.c#22540

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:86:b0:342:f620:dc7a with SMTP id o6-20020a05622a008600b00342f620dc7amr23591384qtw.594.1660756719363;
Wed, 17 Aug 2022 10:18:39 -0700 (PDT)
X-Received: by 2002:a05:6808:d4d:b0:345:fdd:5548 with SMTP id
w13-20020a0568080d4d00b003450fdd5548mr96316oik.77.1660756718994; Wed, 17 Aug
2022 10:18:38 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Wed, 17 Aug 2022 10:18:38 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=189.6.252.226; posting-account=xFcAQAoAAAAoWlfpQ6Hz2n-MU9fthxbY
NNTP-Posting-Host: 189.6.252.226
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5ee93c64-c28f-408c-87a4-19a39b4ce1adn@googlegroups.com>
Subject: Does anyone has samples of C code generated by CFront compiler?
From: thiago.a...@gmail.com (Thiago Adams)
Injection-Date: Wed, 17 Aug 2022 17:18:39 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1077
 by: Thiago Adams - Wed, 17 Aug 2022 17:18 UTC

Does anyone has samples of C code generated by CFront compiler?

Re: Does anyone has samples of C code generated by CFront compiler?

<K_aLK.88200$Sf2.30658@fx34.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=22541&group=comp.lang.c#22541

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx34.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Does anyone has samples of C code generated by CFront compiler?
Newsgroups: comp.lang.c
References: <5ee93c64-c28f-408c-87a4-19a39b4ce1adn@googlegroups.com>
Lines: 14
Message-ID: <K_aLK.88200$Sf2.30658@fx34.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 17 Aug 2022 19:06:18 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 17 Aug 2022 19:06:18 GMT
X-Received-Bytes: 1154
 by: Scott Lurndal - Wed, 17 Aug 2022 19:06 UTC

Thiago Adams <thiago.adams@gmail.com> writes:
>
>Does anyone has samples of C code generated by CFront compiler?

On paper. In storage.

I think I still have cfront around compiled for unixware/svr4.2MP.

I have a nice hand-drawn representation of a parse tree
for one of the C statements generated by cfront, with almost
a dozen comma operators. It had blownup PCC (a shortage
of temp registers) so I implemented a sethi-ulkman algorithm
in the comipiler to fix that (target motorola 88100)). Now in a
box in storage.

Re: Does anyone has samples of C code generated by CFront compiler?

<z1bLK.88201$Sf2.79257@fx34.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=22542&group=comp.lang.c#22542

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx34.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Does anyone has samples of C code generated by CFront compiler?
Newsgroups: comp.lang.c
References: <5ee93c64-c28f-408c-87a4-19a39b4ce1adn@googlegroups.com>
Lines: 11
Message-ID: <z1bLK.88201$Sf2.79257@fx34.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 17 Aug 2022 19:09:19 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 17 Aug 2022 19:09:19 GMT
X-Received-Bytes: 918
 by: Scott Lurndal - Wed, 17 Aug 2022 19:09 UTC

Thiago Adams <thiago.adams@gmail.com> writes:
>
>Does anyone has samples of C code generated by CFront compiler?

It appears I have the source for version 1.2 squirrelled away:

#include "cfront.h"

char *prog_name = "<<cfront 1.2.4 8/23/87>>";

Wonder if it will build on a linux system?

Re: Does anyone has samples of C code generated by CFront compiler?

<00ed00f8-8c6b-4cca-a5d5-eb57319db665n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=22543&group=comp.lang.c#22543

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:1a16:b0:6b8:7789:8ca4 with SMTP id bk22-20020a05620a1a1600b006b877898ca4mr19056691qkb.292.1660765511093;
Wed, 17 Aug 2022 12:45:11 -0700 (PDT)
X-Received: by 2002:a05:6870:1601:b0:101:5e61:d8ee with SMTP id
b1-20020a056870160100b001015e61d8eemr2461176oae.244.1660765510708; Wed, 17
Aug 2022 12:45:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Wed, 17 Aug 2022 12:45:10 -0700 (PDT)
In-Reply-To: <K_aLK.88200$Sf2.30658@fx34.iad>
Injection-Info: google-groups.googlegroups.com; posting-host=189.6.252.226; posting-account=xFcAQAoAAAAoWlfpQ6Hz2n-MU9fthxbY
NNTP-Posting-Host: 189.6.252.226
References: <5ee93c64-c28f-408c-87a4-19a39b4ce1adn@googlegroups.com> <K_aLK.88200$Sf2.30658@fx34.iad>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <00ed00f8-8c6b-4cca-a5d5-eb57319db665n@googlegroups.com>
Subject: Re: Does anyone has samples of C code generated by CFront compiler?
From: thiago.a...@gmail.com (Thiago Adams)
Injection-Date: Wed, 17 Aug 2022 19:45:11 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1948
 by: Thiago Adams - Wed, 17 Aug 2022 19:45 UTC

On Wednesday, August 17, 2022 at 4:06:32 PM UTC-3, Scott Lurndal wrote:
> Thiago Adams <thiago...@gmail.com> writes:
> >
> >Does anyone has samples of C code generated by CFront compiler?
> On paper. In storage.
>
> I think I still have cfront around compiled for unixware/svr4.2MP.
>
> I have a nice hand-drawn representation of a parse tree
> for one of the C statements generated by cfront, with almost
> a dozen comma operators. It had blownup PCC (a shortage
> of temp registers) so I implemented a sethi-ulkman algorithm
> in the comipiler to fix that (target motorola 88100)). Now in a
> box in storage.

How was the formatting?

It was pre-processed (no includes macros etc..) output right?
But was it formatted, like indentation?

Re: Does anyone has samples of C code generated by CFront compiler?

<20220817133606.281@kylheku.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=22544&group=comp.lang.c#22544

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: 480-992-...@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: Does anyone has samples of C code generated by CFront compiler?
Date: Wed, 17 Aug 2022 20:38:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <20220817133606.281@kylheku.com>
References: <5ee93c64-c28f-408c-87a4-19a39b4ce1adn@googlegroups.com>
Injection-Date: Wed, 17 Aug 2022 20:38:38 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="77cf631fee23d93fddab7984d7c1d231";
logging-data="575182"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ZJUS0yVGtkhTDXLu7XRxHA8SJrMNgSDA="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:9/WfES4lEqYZxJ1sSsmAb7RCzt4=
 by: Kaz Kylheku - Wed, 17 Aug 2022 20:38 UTC

On 2022-08-17, Thiago Adams <thiago.adams@gmail.com> wrote:
>
> Does anyone has samples of C code generated by CFront compiler?

The sources to CFront are available online, so if you want to research
CFront, you can do it directly.

https://www.softwarepreservation.org/projects/c_plus_plus/

The most recent available is 3.0.3 from 1993.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal

Re: Does anyone has samples of C code generated by CFront compiler?

<5bdLK.99518$sZ1.89632@fx07.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=22545&group=comp.lang.c#22545

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx07.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Does anyone has samples of C code generated by CFront compiler?
Newsgroups: comp.lang.c
References: <5ee93c64-c28f-408c-87a4-19a39b4ce1adn@googlegroups.com> <K_aLK.88200$Sf2.30658@fx34.iad> <00ed00f8-8c6b-4cca-a5d5-eb57319db665n@googlegroups.com>
Lines: 23
Message-ID: <5bdLK.99518$sZ1.89632@fx07.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 17 Aug 2022 21:36:01 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 17 Aug 2022 21:36:01 GMT
X-Received-Bytes: 1603
 by: Scott Lurndal - Wed, 17 Aug 2022 21:36 UTC

Thiago Adams <thiago.adams@gmail.com> writes:
>On Wednesday, August 17, 2022 at 4:06:32 PM UTC-3, Scott Lurndal wrote:
>> Thiago Adams <thiago...@gmail.com> writes:
>> >
>> >Does anyone has samples of C code generated by CFront compiler?
>> On paper. In storage.
>>
>> I think I still have cfront around compiled for unixware/svr4.2MP.
>>
>> I have a nice hand-drawn representation of a parse tree
>> for one of the C statements generated by cfront, with almost
>> a dozen comma operators. It had blownup PCC (a shortage
>> of temp registers) so I implemented a sethi-ulkman algorithm
>> in the comipiler to fix that (target motorola 88100)). Now in a
>> box in storage.
>
>How was the formatting?
>
>It was pre-processed (no includes macros etc..) output right?
>But was it formatted, like indentation?

no. long lines, no indentation or other formatting.

Re: Does anyone has samples of C code generated by CFront compiler?

<WddLK.99519$sZ1.68175@fx07.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=22546&group=comp.lang.c#22546

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx07.iad.POSTED!not-for-mail
X-newsreader: xrn 9.03-beta-14-64bit
Sender: scott@dragon.sl.home (Scott Lurndal)
From: sco...@slp53.sl.home (Scott Lurndal)
Reply-To: slp53@pacbell.net
Subject: Re: Does anyone has samples of C code generated by CFront compiler?
Newsgroups: comp.lang.c
References: <5ee93c64-c28f-408c-87a4-19a39b4ce1adn@googlegroups.com> <z1bLK.88201$Sf2.79257@fx34.iad>
Lines: 21
Message-ID: <WddLK.99519$sZ1.68175@fx07.iad>
X-Complaints-To: abuse@usenetserver.com
NNTP-Posting-Date: Wed, 17 Aug 2022 21:39:02 UTC
Organization: UsenetServer - www.usenetserver.com
Date: Wed, 17 Aug 2022 21:39:02 GMT
X-Received-Bytes: 1188
 by: Scott Lurndal - Wed, 17 Aug 2022 21:39 UTC

scott@slp53.sl.home (Scott Lurndal) writes:
>Thiago Adams <thiago.adams@gmail.com> writes:
>>
>>Does anyone has samples of C code generated by CFront compiler?
>
>It appears I have the source for version 1.2 squirrelled away:
>
>#include "cfront.h"
>
>char *prog_name = "<<cfront 1.2.4 8/23/87>>";
>
>Wonder if it will build on a linux system?

Newer version:

#include "cfront.h"

char* prog_name = "<<AT&T C++ Translator 2.00 06/30/89>>";

https://github.com/Alhadis/Research-Unix-v10/tree/master/v10/cmd/cfront

Re: Does anyone has samples of C code generated by CFront compiler?

<e9818743-7a1b-4e3a-ade8-a252513fff37n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=22554&group=comp.lang.c#22554

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:622a:15ce:b0:343:6a12:39c with SMTP id d14-20020a05622a15ce00b003436a12039cmr4672089qty.676.1660865362594;
Thu, 18 Aug 2022 16:29:22 -0700 (PDT)
X-Received: by 2002:a05:6871:587:b0:11c:cd8b:e08a with SMTP id
u7-20020a056871058700b0011ccd8be08amr24469oan.256.1660865362316; Thu, 18 Aug
2022 16:29:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Thu, 18 Aug 2022 16:29:22 -0700 (PDT)
In-Reply-To: <K_aLK.88200$Sf2.30658@fx34.iad>
Injection-Info: google-groups.googlegroups.com; posting-host=94.175.38.125; posting-account=rqC7UgoAAACeVvrGykivrxfPIl3bA_1y
NNTP-Posting-Host: 94.175.38.125
References: <5ee93c64-c28f-408c-87a4-19a39b4ce1adn@googlegroups.com> <K_aLK.88200$Sf2.30658@fx34.iad>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e9818743-7a1b-4e3a-ade8-a252513fff37n@googlegroups.com>
Subject: Re: Does anyone has samples of C code generated by CFront compiler?
From: bart4...@gmail.com (bart c)
Injection-Date: Thu, 18 Aug 2022 23:29:22 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2066
 by: bart c - Thu, 18 Aug 2022 23:29 UTC

On Wednesday, 17 August 2022 at 20:06:32 UTC+1, Scott Lurndal wrote:
> Thiago Adams writes:
> >
> >Does anyone has samples of C code generated by CFront compiler?
> On paper. In storage.
>
> I think I still have cfront around compiled for unixware/svr4.2MP.
>
> I have a nice hand-drawn representation of a parse tree
> for one of the C statements generated by cfront, with almost
> a dozen comma operators. It had blownup PCC (a shortage
> of temp registers) so I implemented a sethi-ulkman algorithm
> in the comipiler to fix that (target motorola 88100)). Now in a
> box in storage.

Can you post the expression in question?

I'm in the middle of something similar and I'm curious as to how well or not my own approach works.

But the number of comma operators shouldn't really put pressure on registers, as once you've evaluated each term, you can free any registers used.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor