[HN Gopher] The Design of a Self-Compiling C Transpiler Targetin...
       ___________________________________________________________________
        
       The Design of a Self-Compiling C Transpiler Targeting POSIX Shell
        
       Author : fanf2
       Score  : 14 points
       Date   : 2024-11-10 20:48 UTC (2 hours ago)
        
 (HTM) web link (dl.acm.org)
 (TXT) w3m dump (dl.acm.org)
        
       | norir wrote:
       | I don't really understand why this would be better than using
       | tcc, which also can be used to bootstrap gcc, as a trusted
       | prebuilt binary. Is there any reason to think that posix shell is
       | more trustworthy? I certainly would expect c code to be more
       | human readable than shell for writing a compiler.
        
         | krackers wrote:
         | Isn't this useful for obscure embedded systems where you have a
         | posix shell but no working compiler (that you have access to)?
        
         | Y_Y wrote:
         | This compiler is written in C though. You also have the option
         | to distribute the "compiled" version which is a POSIX shell
         | script. I can imagine instances where I can't grab a TCC binary
         | or maybe I'm not allowed to set the exec bit.
        
       ___________________________________________________________________
       (page generated 2024-11-10 23:00 UTC)