This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCC Needs a backend cleanup and complete rewrite


On Fri, Feb 23, 2001 at 03:37:36PM +1100, Fergus Henderson wrote:
> On 22-Feb-2001, Mike Stump <mrs@windriver.com> wrote:
> > 
> > We already have that type of power.  Target the rs6000 simulator,
> > compile the simulator for your machine, and run whatever you want.
> > Distribute simulator binaries.
> > 
> > :-)
> 
> That sounds great.  Why the smiley?
> 
> How big is the rs6000 simulator, by the way?
> And is it written in K&R C?

It is part of the gdb release.  In the sim/ppc directory, the text files
contain roughly 64,000 lines.  I don't recall how much of the infrastructure in
sim/common (50,000 lines) it uses, though my memory says that sim/ppc was
created before most of the sim/common framework was created, though it was the
model for sim/common.  The simulator uses BFD and opcodes as well.  The last
time I built it under Linux, it took 1.4M of text, 134M of static data.

The simulator requires prototypes and long long data types, and because of long
long, in general will not configure itself unless it is compiled by GCC.  Now
that C99 has long long, we probably should change the configure test.

-- 
Michael Meissner, Red Hat, Inc.  (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]