Have you ever tried to compile for esp32/8266?

Ernesto Castellotti erny.castell at gmail.com
Tue Nov 19 18:25:39 UTC 2019


On Tuesday, 19 November 2019 at 12:51:06 UTC, Andrea Fontana 
wrote:
> I see expressif released a fork of llvm with a new target: 
> extensa.
> This allows you to write code for esp8266 and esp32 using clang 
> [1]
>
> I wonder if we can use ldc (using -betterC I guess) to build 
> code for these platforms as well.
>
> Any idea?
>
> [1] https://esp32.com/viewtopic.php?t=9226&p=38466

I think it's enough to generate llvm ir with the "-output-ll 
-betterC" flags, then the generated file can easily be compiled 
from llc of llvm extensa


More information about the digitalmars-d-ldc mailing list