Re: What is the simplest CPU GCC is ported for?

Colin Paul Gloster <Colin_Paul_Gloster@xxxxxxx> wrote in news:et3bcd$ie0

Steve Calfee <stevecalfee@xxxxxxxxxxx> posted:


GCC in its bones believes in 8 bit bytes, words being some multiple of
bytes etc. There are lots of built in assumptions based on the cpu
architectures in existance now. I think it would be hard to port to a
bit addressable cpu.


Maybe. In a later post in this thread you said you wanted 32 bit
support so I do not know whether you want to support "a bit
addressable" CPU as well, or whether that was merely an auxiliary

The 1750a configuration which used to be in GCC but had been removed
many version numbers ago from the versions maintained by the Free
Software Foundation (as someone supporting a GCC configuration for the
MIL-STD-1750A processor was being paid by providing support directly
to customers instead of telling them to download GCC for gratis from
the FSF) contained "#define BITS_PER_UNIT 16". "#define
BITS_PER_UNIT 32" is in gcc-4.1.1/gcc/config/c4x/c4x.h

info gccint

Here is a table of machine modes. The term "byte" below refers to an
object of `BITS_PER_UNIT' bits (*note Storage Layout::).


The global variables `byte_mode' and `word_mode' contain modes whose
classes are `MODE_INT' and whose bitsizes are either `BITS_PER_UNIT'
`BITS_PER_WORD', respectively. [..]

Define this macro to be the number of bits in an addressable
storage unit (byte). If you do not define this macro the default
is 8.

Number of bits in a word. If you do not define this macro, the


Thanks for the info. I have no desire to become a GCC expert. I know one
guy that did 2 ports of GCC to custom architectures. His opinions were
strong about the issues of GCC and where it is flexible and where it is
broken. I was parroting his comments about a byte. Do you know of an
arch for GCC that does bytes defined as something but 8? Anyway it
doesn't matter, I don't want to deal with GCC. I just want to find a
simple arch which a current GCC supports so I can skip that particular

Regards, Steve