-
-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Any plans for Tensilica Xtensa support? #964
Comments
It doesn't seem to be too hard to support it, but I don't know how to test the result. I just installed |
I think you need to use the fork for the ESP32 version of the Xtensa core: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html / https://github.com/espressif/esp-idf/blob/master/tools/tools.json |
It looks like it's a bit too much to install a third-party SDK to add a new target to the mold linker. Are you working for Espressif? If there's a business interest in doing this, I'm happy to talk on what condition we can work together. |
Sorry, I am not working for Espressif. Just a hobbyist developer using the ESP32 MCUs. I think it is enough if you just get this archive instead of the whole SDK:
LLVM seems to be at https://github.com/espressif/llvm-project/releases/download/esp-15.0.0-20221201/llvm-esp-15.0.0-20221201-linux-amd64.tar.xz |
It looks like I can't still produce a working "hello world" program with the SDK.
|
That is weird. This seems related? espressif/esp-idf#5308 |
@rui314 Let me know if I can help somehow. |
https://github.com/espressif/esp-idf/tree/master/components/esp_system/ld |
I just don't need an SDK at this moment but we need to keep maintaining once we start supporting the target, which includes setting up a GitHub CI and such. It looks like maintaining the Xtensa target isn't easy enough for us given the situation. We usually support only targets that we can install cross compilers via apt-get. |
Hi, I saw this issue linked to espressif/esp-idf#5308 and wanted to leave a hello-world recipe: $ xtensa-esp32-elf-gcc -specs=sim.elf.specs -specs=sys.qemu.specs -o /tmp/foo /tmp/foo.c
$ qemu-system-xtensa -nographic --semihosting -cpu esp32 -M esp32 -kernel /tmp/foo
Not initializing SPI Flash
Warning: both -bios and -kernel arguments specified. Only loading the the -kernel file.
Hello world using this toolchain release and this qemu release. While this specific toolchain can't be installed via apt-get, it is available as part of our SDK docker images, which should work for the purpose of GitHub CI. I think running this with the upstream Qemu and user mode emulation ( |
@igrr Off topic, but does the qemu for xtensa also support the S2/S3 series? I am primarely working with S3 nowadays and it would be great to see it. |
Unfortunately it doesn't, but you can subscribe to espressif/qemu#42 to get notified if we implement it. I can't promise any timeline, sorry. |
Our test suite does not use |
The Tensilica Xtensa cores is used in the popular ESP32 MCU. There is gcc and upcoming llvm support for it, but would be great to see mold support for the Xtensa targets (especially LX6), because the linking of projects takes minutes sometimes.
The text was updated successfully, but these errors were encountered: