27 Φεβ 2022, 17:49 Από [email protected]: > No, riscv64 is for 64bit only. > I'm not aware of riscv32 32bit porting efforts but someone is perhaps busy > working on it. > > C. > > -----Original Message----- > From: Tinycc-devel [mailto:[email protected]] > On Behalf Of Sagar Acharya via Tinycc-devel > Sent: Sunday, February 27, 2022 11:59 > To: [email protected] > Cc: Sagar Acharya > Subject: [Tinycc-devel] rv32 support in tcc > > Hello folks, > I saw tcc and there are a few riscv64 files in the project. README states > that they would be used for compiling on a riscv64 system. I need a compiler > that could compile for riscv32. Can tinycc do that currently? > > If not, are there any plans to introduce rv32 compilation? > > Thanks for the fantastic project > > Sagar Acharya > I would add that even if someone is not working on it, it may be possible (and when saying possible I mean, not a pain in the ass) to make one because while I couldn't find a reference to it, I suppose that both 32-bit and 64-bit versions of RISC-V were created simultaneously as RISC-V was designed in an era were 32-bit computers were there.
With that in mind, I suppose that the differences between these two will be the length of the registers. So someone should be able to modify the TCC's "RISC-V64" version and make it support the 32-bit RISC-V with a couple of changes to both the backend and in the frontend (I suppose things like disabling 8-byte types for example). Any thoughts on that one? _______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
