public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mark Phillips <M.S.Phillips@nortel.co.uk>
To: Robin Kirkham <Robin.Kirkham@mlb.dmt.csiro.au>
Cc: Eric Norum <eric@skatter.USask.Ca>,
	Joel Sherrill <joel@OARcorp.com>,
	egcs@cygnus.com
Subject: Re: CPU32 (was: cpu32 multilib patch) (fwd)
Date: Tue, 07 Oct 1997 11:41:00 -0000	[thread overview]
Message-ID: <Pine.HPP.3.95q.971007113050.14729U-100000@bharh59a.europe.nortel.com> (raw)
In-Reply-To: <19971006170824.18643.qmail@ragnarok.mlb.dmt.csiro.au>

Sorry I'm not sure who wrote the text that I'm commenting on (can't
figure it out from the quotes so I've dropped all the surrounding text to 
make this email smaller).

Just a quick comment/correction:-

> > > While I think the -mcpu32 flag is the way to go, the -m68332 flag
> > > (which is I think correct) is also useful. The various 683xx
> > > processors have different on-chip peripherals and it is thus useful
> > > to be able to have conditional on these variants. There are quite a
> > > number of 683xx's now, and by rights each one should have its own
> > > -m flag. Here is (I hope) a complete list:
> > >
> > > 68000/EC000 core:	68302	68306	68307	68322	68356
> > >
> > > CPU32 core:		68330	68331	68332	68333	68334
> > > 68336	68340	68341	68349	68360

Actually the 68360 is NOT a CPU32 it is a CPU32P, it is very similar to
the straight CPU32, but has several differences:-

Can access data with any alignment.
Supports wider memory (32 bit data bus).
Has different instruction timings.

Personally it is MUCH more important to me that the code works than it is
ultra fast, but there are clearly optimisations which could be performed
for access to unaligned data (maybe packed structures).

I am currently using gcc 2.7.2.2 with the configuration hacked (enhanced?)
to generate ELF/DWARF with -mcpu32 being added to gcc to pass -m68020
-mnobitfield to cc1 and -mcpu32 to gas (also -msoft-float causes
-mno-68881 to be passed to gas).

I would much prefer it if gcc supported a -mcpu32 (and maybe -mcpu32p), in
my opinion the optimisations which could be performed for the different
variants and NOT worth it. If you do support them, the resulting user base
for each config becomes much smaller and therefore the stability of gcc for
the end user reduces (this is why I choose to hack gcc 2.7.2.2 to do
-m68020 -mnobitfields - I trust the 68020 code generation because of its
large amount of use on old sun3 boxes).

> > > 4. The various 683xx's should be "aliases" for -mcpu32, so using,
> > > for instance, -m68360 would generate code for a CPU32, and define
> > > both __mcpu32__ and __m68360__.
> > 
> > Here's where we part company  :-)

I tend to think there will continue to be lots of new 68series chips,
but few significant (if any) variants to the core - therefore I lean
towards just specifiying the core not the actual chip.


Keep up the good work!

Cheers
Mark


      reply	other threads:[~1997-10-07 11:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <199710061520.JAA06397@skatter.USask.Ca>
1997-10-06 10:09 ` Robin Kirkham
1997-10-07 11:41   ` Mark Phillips [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.HPP.3.95q.971007113050.14729U-100000@bharh59a.europe.nortel.com \
    --to=m.s.phillips@nortel.co.uk \
    --cc=Robin.Kirkham@mlb.dmt.csiro.au \
    --cc=egcs@cygnus.com \
    --cc=eric@skatter.USask.Ca \
    --cc=joel@OARcorp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).