This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: builtin type size
- From: Spundun <spundun at ISI dot EDU>
- To: Nick Ing-Simmons <nick dot ing-simmons at elixent dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 14 Nov 2002 14:06:12 -0800
- Subject: Re: builtin type size
- References: <1036352499.1456.6.camel@localhost.localdomain> <20021105154007.14221.6@bactrian.elixent.com>
On Tue, 2002-11-05 at 07:40, Nick Ing-Simmons wrote:
> Spundun <spundun@ISI.EDU> writes:
> >Hi I want to change the sizes of some of the C buitin types. I want to
> >make both short and char of size SI (or 32 bit). What files do I have to
> >change for that?
> >Also, is it ok if I have char short and int all of size 32 bits?
> >Thanx
> >Spundun
>
> Look at the C40 port.
Hi, thanx for your reply. I looked at the c4x directory, but grepping
for C$) didnt find anything that I think does what I want to do.below is
the grep result (which is fairly small) but none of the occurances seem
to tell gcc to make char and short of size 4bytes.
Can anyone tell me what I'm missing?
Thanx
Spundun
[spundun@mermaid c4x]$ grep -in c40 *
c4x.c:250: else if (TARGET_C40)
c4x.c:269: C40_FLAG | C44_FLAG);
c4x.c:277: case 40: target_flags |= C40_FLAG; break;
c4x.c:282: target_flags |= C40_FLAG;
c4x.c:3854: /* The new C30/C40 silicon dies allow 3 regs of the 4 input
operands.
c4x.c:4768: stall (reduced to a single cycle on the c40 using LDA),
while
c4x.h:70: if (TARGET_C40) \
c4x.h:72: builtin_define ("_TMS320C40"); \
c4x.h:73: builtin_define ("_C40"); \
c4x.h:157:#define C40_FLAG 0x1000000 /* Emit C40 code. */
c4x.h:197: { "40",
C40_FLAG, \
c4x.h:198: N_("Generate code for C40
CPU")}, \
c4x.h:271: Max iteration count for DB is 2^31 + 1 for C40, but 2^23 +
1 for C30.
c4x.h:308:#define TARGET_C40 (target_flags & C40_FLAG)
c4x.h:1448: LABEL_REF and SYMBOL_REF (except on the C40 with the big
memory
c4x.h:1508: Some small integers are effectively free for the C40. We
should
c4x.h:1678: if (TARGET_C40) dspversion = 40;
\
c4x.md:34:; Additional C30/C40 instructions not coded:
c4x.md:38:; Additional C40 instructions not coded:
c4x.md:3120:; Unfortunately the C40 doesn't allow cmpi3 7, *ar0++ so the
next best
c4x.md:6271:(define_insn "*mulhf3_c40"
libgcc.S:42:; described in the C30/C40 user manuals. It then multiplies
that
[spundun@mermaid c4x]$
>
>
> --
> Nick Ing-Simmons
> http://www.ni-s.u-net.com/