This is the mail archive of the
mailing list for the GCC project.
Support for targets with widths other than 2^x (Power of 2)
- From: Ramon Wirsch <ramon dot wirsch at stud dot tu-darmstadt dot de>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 15 Oct 2015 14:34:06 +0200
- Subject: Support for targets with widths other than 2^x (Power of 2)
- Authentication-results: sourceware.org; auth=none
We here at the Computer Systems Group of the Technische UniversitÃt
Darmstadt, Germany are working on an SoC-Kit called SpartanMC.
We are currently using our own port of GCC to compile for it, but
would be willing to get our target upstream and maintain it.
The SpartanMC architecture poses a few additional difficulties as it
is 18 Bits wide.
Our investigations have shown that GCC is on principle capable of that
(it is working right now, although with several limitations). The main
problems are posed by code optimizations that are only applicable for
2^x values such as
... & (obj_align - 1);
Until now, every bug or crash we experienced was caused by such
implementations that can very well be rewritten to have correct
results no matter the actual value.
Also, the current codebase does not seem to be unified in this and
already mixes general implementations and ones that only work for
powers of 2.
Our question now is, whether or not compatibility with our 18 bit
architecture and others is something you desire GCC to be capable of
in the long term.
It would make it much easier for us to use GCC and allow third parties
to make much easier use of our work.
Further details on SpartanMC:
It is an open source SoC-Kit aimed at running on several FPGAs from
various manufacturers with high resource efficiency, which is why it
utilizes the 18 bit wide underlying architecture of most FPGAs. In
contrast to exisiting SoC-Kits it is completely open source and fully
customizable and cross platform instead of targeted only at one
Even more information can be found on our projects website: spartanmc.de
Thanks and regards,