‹ BackHN Continuity

Thread

EDG C++ front-end goes public

249 points · 129 comments · iandinwoodie

  1. my-next-account · · focus · HN ↗
    What is this?
    1. OneDeuxTriSeiGo · · focus · HN ↗
      <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Edison_Design_Group" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Edison_Design_Group

      TLDR EDG C++ is a compiler frontend developed by EDG since the 80s which has been used under the hood for a whole bunch of commercial C and C++ compilers, static analyzers, linters, and IDE code completion tools.

      Odds are if you are familiar with a closed source tool in one of those categories above, there&#x27;s a decent chance it uses EDG&#x27;s frontend somewhere in it under the hood.

    2. dgrunwald · · focus · HN ↗
      It&#x27;s one of the 4 big remaining C++ compiler frontends: gcc, clang, MSVC, EDG. Most other C++ compilers are based on either EDG or clang. (e.g. the Intel C++ compiler used to be based on the EDG frontend, though modern versions are based on clang instead)

      The &quot;frontend&quot; is the part of the compiler that understands the input language: lexer, parser, template instantiation, constexpr evaluation, ... The EDG frontend produces an intermediate representation (IL) that is then used by the different compiler vendors to generate machine code. Or do code analysis.

      EDG can also be used as a C++-to-C compiler.

      1. ur-whale · · focus · HN ↗
        &gt; EDG can also be used as a C++-to-C compiler.

        Nice to see this still exists!

        After all, this is how it all started back in the days of - what was it called again ? - yeah, cfront

        <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Cfront" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Cfront

      2. tgma · · focus · HN ↗
        Isn&#x27;t MSVC EDG frontend?
        1. daveedvdv · · focus · HN ↗
          No, MSVC is its own front end (the older continuously maintained C++ front end, in fact). However, Visual Studio&#x27;s C++ IntelliSense uses the EDG front end.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.