ESP32 ISA reference manual

User avatar
rudi ;-)
Posts: 1443
Joined: Fri Nov 13, 2015 3:25 pm

Re: ESP32 ISA reference manual

Postby rudi ;-) » Sat Aug 24, 2019 11:38 am

ESP_Angus wrote:
Thu Aug 22, 2019 1:16 am
Hi rudi,
rudi ;-) wrote:
Wed Aug 21, 2019 7:12 pm
do you know, is there a config file for LX6, LX7 for the xt-gcc ( LX106 ) and can we theoretical use the xt-gcc (lx106) with an LX6, LX7 config file or do we need a full new xt-gcc compiler for each ( Lx6, Lx7 ) ? for esp8266(lx106) i use parallel xt-gcc from cadence - so
Do you mean xt-xcc (the Cadence/Tensilica compiler, not based on gcc)?

In theory you need the compiler to match the CPU that you have, so esp8266/lx106 compiler is not suitable for ESP32 or ESP32-S2. In practice maybe the code will run (as ESP8266 CPU is mostly simpler than newer CPUs) but it won't use newer features, will use call0 ABI not windowed, etc - code will overall be less optimised.
hi angus,

yes u are right, i mean the XT-XCC compiler, ( typo finger crossed )
use older version (bin) xt-xcc version 8.0.1.1 (xcc-lib) xt-xcc version 8.0.1
but i use also the open src gcc compiler for 8266's

for each target we need then an own (lx106, Lx6, Lx7) compiler?
i thinked allways it is enough to have the target config file (lx106-params) / (lx***-params) for each and would be enough.
ok learned a part now from you :) i am not the compiler build prof in this
or I'm too relaxed on vacation and my brain is on reserve. / switched off.
so i know my next lession for this winter for deeper look in.
never stop going learing - :)


thank you
best wishes
rudi ;-)

edit:

[Q]:
from read, ESP32 is LX6 core and ESP32S2 is LX7 (64 FLOP) core
we use/get then a different toolchain ( compiler ) for ESP32S2 ?
The toolchain tuple is xtensa-esp32s2-elf-, for example gcc for this target is named xtensa-esp32s2-elf-gcc.
right?

edit:
I think I've mixed apples and pears now.
the (cross) compiler build needs the config params
for the toolchain. I really thought now
this config params file is enough
to use with the END (cross) compiler that was formed.
I'm happy to be on vacation - so much mixed up in my head :)
hope I come back in order :)
(( but can not keep his fingers off the computer just turn it off :) ))
but the knowledge about compiler construction itself is intensified in the winter,
I have since discovered a few gaps in knowledge with me, to which I had no answer.
I have to change that and improve it
thanks angus !!
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

ESP_Angus
Posts: 1864
Joined: Sun May 08, 2016 4:11 am

Re: ESP32 ISA reference manual

Postby ESP_Angus » Mon Aug 26, 2019 1:08 am

rudi ;-) wrote:
Sat Aug 24, 2019 11:38 am
for each target we need then an own (lx106, Lx6, Lx7) compiler?
i thinked allways it is enough to have the target config file (lx106-params) / (lx***-params) for each and would be enough.
You might be right for XT-XCC, I don't actually have a copy of the compiler to check. Although if your compiler is older than the LX7 core design, it may need updating also.
rudi ;-) wrote:
Sat Aug 24, 2019 11:38 am
from read, ESP32 is LX6 core and ESP32S2 is LX7 (64 FLOP) core
we use/get then a different toolchain ( compiler ) for ESP32S2 ?
The toolchain tuple is xtensa-esp32s2-elf-, for example gcc for this target is named xtensa-esp32s2-elf-gcc.
Yes, when using GCC a new toolchain is needed for each new CPU variant. xtensa-esp32s2-elf-gcc is the cross-compiler for ESP32S2.

User avatar
rudi ;-)
Posts: 1443
Joined: Fri Nov 13, 2015 3:25 pm

Re: ESP32 ISA reference manual

Postby rudi ;-) » Tue Aug 27, 2019 3:09 am

ESP_Angus wrote:
Mon Aug 26, 2019 1:08 am
rudi ;-) wrote:
Sat Aug 24, 2019 11:38 am
for each target we need then an own (lx106, Lx6, Lx7) compiler?
i thinked allways it is enough to have the target config file (lx106-params) / (lx***-params) for each and would be enough.
You might be right for XT-XCC, I don't actually have a copy of the compiler to check. Although if your compiler is older than the LX7 core design, it may need updating also.
yes i am right -
i have no copy i work with the origin.
i will check the update possibles.
ESP_Angus wrote:
Mon Aug 26, 2019 1:08 am
rudi ;-) wrote:
Sat Aug 24, 2019 11:38 am
from read, ESP32 is LX6 core and ESP32S2 is LX7 (64 FLOP) core
we use/get then a different toolchain ( compiler ) for ESP32S2 ?
The toolchain tuple is xtensa-esp32s2-elf-, for example gcc for this target is named xtensa-esp32s2-elf-gcc.
Yes, when using GCC a new toolchain is needed for each new CPU variant. xtensa-esp32s2-elf-gcc is the cross-compiler for ESP32S2.
txs
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: No registered users and 1 guest