* [TUHS] Edison Design Group C Front End
@ 2024-08-13 19:41 Henry Bent
2024-08-13 21:08 ` [TUHS] " Luther Johnson
0 siblings, 1 reply; 3+ messages in thread
From: Henry Bent @ 2024-08-13 19:41 UTC (permalink / raw)
To: The Eunuchs Hysterical Society
[-- Attachment #1: Type: text/plain, Size: 1391 bytes --]
Hi all,
I was working with my IRIX 4 machine recently and noticed a mysterious file
- /usr/lib/ecfe. It turns out that this is the Edison Design Group C (not
C++) Front End, included almost certainly by accident with the last release
of the Developer Toolkit for IRIX 4. No other piece of the compiler
toolchain references the EDG product in any way and there is no
documentation for it whatsoever.
The research that I did seems to indicate that this is a source to source
translator, akin to the contemporary Kuck & Associates product - is that
correct? I also found a reference to EDG's tool being used in the Apogee C
compiler. I have a copy of Apogee C for SunOS and it does appear that
"cfe" is the same EDG product. Unfortunately there is no documentation
specific to the C front end, and I don't have a license for Apogee C so I
can't run the compiler to see how it's calling cfe. Just running a C file
"blah.c" through the IRIX front end with no switches results in a
transformed file "blah.int.c". Unfortunately running anything even
moderately complex through the front end results in code that either
doesn't compile or doesn't run, so I feel that I must be missing some flags
or basic options.
Does anyone have any information about SGI's use of this software, or any
documentation/information in general about the EDG product? My usual
sources came up empty.
-Henry
[-- Attachment #2: Type: text/html, Size: 1606 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [TUHS] Re: Edison Design Group C Front End
2024-08-13 19:41 [TUHS] Edison Design Group C Front End Henry Bent
@ 2024-08-13 21:08 ` Luther Johnson
2024-08-13 21:11 ` Luther Johnson
0 siblings, 1 reply; 3+ messages in thread
From: Luther Johnson @ 2024-08-13 21:08 UTC (permalink / raw)
To: tuhs
I don't know if you've seen this, but:
https://www.edg.com/
Edison Design Group has produced many compiler front ends, this part of
a compiler scans and parse the input language, and emits an intermediate
representation, the first representations in the chain of compiler
phases are usually a parse tree, then a cleaned-up version of the parse
tree that has removed all sorts of contingent data, tied to the the
original program, but not necessary for further processing - this is
usually called the 'abstract syntax tree'. I've never used EDG products
in my work, but I have talked with them a couple of times. I imagine if
you have an EDG front end, in addition to that output you describe, it
probably is meant to write some (possibly serialized) version of an
abstract syntax tree to some file somewhere (perhaps with the right
options on invocation).
You could call them and ask them, they seemed very friendly and helpful
a couple of years ago when I talked to them.
On 08/13/2024 12:41 PM, Henry Bent wrote:
> Hi all,
>
> I was working with my IRIX 4 machine recently and noticed a mysterious
> file - /usr/lib/ecfe. It turns out that this is the Edison Design
> Group C (not C++) Front End, included almost certainly by accident
> with the last release of the Developer Toolkit for IRIX 4. No other
> piece of the compiler toolchain references the EDG product in any way
> and there is no documentation for it whatsoever.
>
> The research that I did seems to indicate that this is a source to
> source translator, akin to the contemporary Kuck & Associates product
> - is that correct? I also found a reference to EDG's tool being used
> in the Apogee C compiler. I have a copy of Apogee C for SunOS and it
> does appear that "cfe" is the same EDG product. Unfortunately there
> is no documentation specific to the C front end, and I don't have a
> license for Apogee C so I can't run the compiler to see how it's
> calling cfe. Just running a C file "blah.c" through the IRIX front
> end with no switches results in a transformed file "blah.int.c".
> Unfortunately running anything even moderately complex through the
> front end results in code that either doesn't compile or doesn't run,
> so I feel that I must be missing some flags or basic options.
>
> Does anyone have any information about SGI's use of this software, or
> any documentation/information in general about the EDG product? My
> usual sources came up empty.
>
> -Henry
^ permalink raw reply [flat|nested] 3+ messages in thread
* [TUHS] Re: Edison Design Group C Front End
2024-08-13 21:08 ` [TUHS] " Luther Johnson
@ 2024-08-13 21:11 ` Luther Johnson
0 siblings, 0 replies; 3+ messages in thread
From: Luther Johnson @ 2024-08-13 21:11 UTC (permalink / raw)
To: tuhs
... of course it is serialized, there has to be some convention on
writing a tree out in some order to a file ... well anyway I'm sure they
can tell you what that product is and does.
On 08/13/2024 02:08 PM, Luther Johnson wrote:
> I don't know if you've seen this, but:
>
> https://www.edg.com/
>
> Edison Design Group has produced many compiler front ends, this part
> of a compiler scans and parse the input language, and emits an
> intermediate representation, the first representations in the chain of
> compiler phases are usually a parse tree, then a cleaned-up version of
> the parse tree that has removed all sorts of contingent data, tied to
> the the original program, but not necessary for further processing -
> this is usually called the 'abstract syntax tree'. I've never used EDG
> products in my work, but I have talked with them a couple of times. I
> imagine if you have an EDG front end, in addition to that output you
> describe, it probably is meant to write some (possibly serialized)
> version of an abstract syntax tree to some file somewhere (perhaps
> with the right options on invocation).
>
> You could call them and ask them, they seemed very friendly and
> helpful a couple of years ago when I talked to them.
>
> On 08/13/2024 12:41 PM, Henry Bent wrote:
>> Hi all,
>>
>> I was working with my IRIX 4 machine recently and noticed a
>> mysterious file - /usr/lib/ecfe. It turns out that this is the
>> Edison Design Group C (not C++) Front End, included almost certainly
>> by accident with the last release of the Developer Toolkit for IRIX
>> 4. No other piece of the compiler toolchain references the EDG
>> product in any way and there is no documentation for it whatsoever.
>>
>> The research that I did seems to indicate that this is a source to
>> source translator, akin to the contemporary Kuck & Associates product
>> - is that correct? I also found a reference to EDG's tool being used
>> in the Apogee C compiler. I have a copy of Apogee C for SunOS and it
>> does appear that "cfe" is the same EDG product. Unfortunately there
>> is no documentation specific to the C front end, and I don't have a
>> license for Apogee C so I can't run the compiler to see how it's
>> calling cfe. Just running a C file "blah.c" through the IRIX front
>> end with no switches results in a transformed file "blah.int.c".
>> Unfortunately running anything even moderately complex through the
>> front end results in code that either doesn't compile or doesn't run,
>> so I feel that I must be missing some flags or basic options.
>>
>> Does anyone have any information about SGI's use of this software, or
>> any documentation/information in general about the EDG product? My
>> usual sources came up empty.
>>
>> -Henry
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-13 21:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-13 19:41 [TUHS] Edison Design Group C Front End Henry Bent
2024-08-13 21:08 ` [TUHS] " Luther Johnson
2024-08-13 21:11 ` Luther Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).