> Date: Fri, 24 Nov 2023 12:39:27 -0600 > From: Zane Asher Post <zapos...@gmail.com> > To: tinycc-devel@nongnu.org > Subject: [Tinycc-devel] Adding Xtensa > > How can I go about adding Xtensa support to TCC?
You can take a look at the other backends (*gen.c, *link.c) for how this is done in tcc. As you can see in i386-gen.c, the code generator can be done in ~852 LOC for x86. It's probably useful to start with the assembler (asm), linker (link) first. For the corresponding ISA documentation you could use when adding it, see [1], [2]. [1] https://github.com/espressif/xtensa-isa-doc [2] https://www.cadence.com/content/dam/cadence-www/global/en_US/documents/tools/ip/tensilica-ip/isa-summary.pdf _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel