[HN Gopher] Clang vs. other open-source compilers
       ___________________________________________________________________
        
       Clang vs. other open-source compilers
        
       Author : peter_d_sherman
       Score  : 31 points
       Date   : 2020-02-09 21:22 UTC (1 hours ago)
        
 (HTM) web link (clang.llvm.org)
 (TXT) w3m dump (clang.llvm.org)
        
       | peter_d_sherman wrote:
       | Excerpt:
       | 
       | " _Clang can serialize its AST out to disk and read it back into
       | another program, which is useful for whole program analysis._
       | 
       | GCC does not have this. GCC's PCH mechanism (which is just a dump
       | of the compiler memory image) is related, but is architecturally
       | only able to read the dump back into the exact same executable as
       | the one that produced it (it is not a structured format)."
       | 
       | Clang, you had me at 'hello'.
       | 
       | The point I outlined above is just icing on the cake!
        
         | mhh__ wrote:
         | GCC can dump it's AST
         | https://stackoverflow.com/questions/15800230/how-can-i-dump-...
        
       | gok wrote:
       | This is staggeringly out of date (it's from around 2007) and
       | really ought to be taken down.
        
         | mattst88 wrote:
         | Could you provide a few examples of what information is out of
         | date?
        
       | SeekingMeaning wrote:
       | I mean Elsa and and PCC are cool, but who _actually uses_ them?
       | Clang and GCC are pretty much all there is, but regardless it's
       | nice to know what people have tried /are trying to do. These
       | bullet points in particular make me want to tinker with PCC and
       | see how much it is (and is not) capable of:
       | 
       | > The PCC source base is very small and builds quickly with just
       | a C compiler.
       | 
       | > PCC doesn't support Objective-C or C++ and doesn't aim to
       | support C++.
        
         | kick wrote:
         | PCC was at one time basically the standard C compiler, and you
         | can port it to just about any architecture you want in less
         | than a day.
         | 
         | It also shipped with many historic operating systems, Plan 9
         | from Bell Laboratories being one of them, if I remember
         | correctly.
        
         | vyjcgtyjb wrote:
         | Many use Microsoft's and Intel's.
        
           | thenewnewguy wrote:
           | This is a page about _open source_ compilers.
        
         | [deleted]
        
       ___________________________________________________________________
       (page generated 2020-02-09 23:00 UTC)