1

Is there some way to produce output in godbolt for the Xtensa compiler?

This

#include <cstdio>

int main()
{
    printf("Hello World!");
}

generates an asm call to printf, but nothing is displayed.

glades
  • 3,778
  • 1
  • 12
  • 34
  • 1
    In the source code tab click `Add New...` then `Execution Only`. – Retired Ninja Sep 23 '22 at 09:46
  • @RetiredNinja That switches me back to x86 gcc :/ Anyhow, I can't reselect the xtensa compiler. Was it removed just now? – glades Sep 23 '22 at 09:48
  • 1
    It's possible execution isn't supported for that target. *shrug* – Retired Ninja Sep 23 '22 at 09:49
  • 2
    The compiler explorer doesn't have the capabilities to run on all platforms that there are compilers for. If you donate an ESP32 system (or more) and figure out a way to connect it to the cloud system that runs the compiler explorer, then you're more than welcome to add that support. :) – Some programmer dude Sep 23 '22 at 09:49
  • @Someprogrammerdude I would happily donate, if esp gets integrated. Where can I do so? – glades Sep 23 '22 at 10:01

0 Answers0