[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [f-cpu] More Instruction Set Trouble



Michael Riepe wrote:
> 
> On Sat, Aug 18, 2001 at 08:27:27PM -0600, Ben Franchuk wrote:
> 
> > > When that fails... hasn't anyone told you that global variables are
> > > evil anyway? :)
> >
> > I thought Objects and dynamic linking are Evil.
> > I like global Variables. I sooner would see more globals in use than putting
> > everything local.
> > foo{ char bar[2000]...}
> 
> Ben, you're a dinosaur ;)  Get REAL !!!

Late Neanderthal!.
Having used computers with a whopping 16kw in the 1980's I still think in terms
of small systems. It is just things seem to grow and grow. Take a web browser -
mozilla - while I expect large data space for buffers and displays, why does
seem the program it self is larger than the linux kernel and X-windows and
longer to write?

> 
> > I think if compilers did more sorting of data on size ( objects <= 8 bytes )
> > first
> > and then everything else you would not need as many immediate constants.
> 
> I'd rather sort by alignment, not size.
Most simple items would align to the common 'word' size. The problem is things
like
structure  BIG stuff[Big_number];
structure * BIG Next ;
 while (Next!= NULL) { Next=stuff.link; ... }
 Next needs full 32 bit offset unsorted and a small offset if sorted. The
problem is the compilers don't really tellme what is being generated or what are
inefficient coding practices. Sometimes one needs to be able to see under the
hood.
Ben.
-- 
Standard Disclaimer : 97% speculation 2% bad grammar 1% facts.
"Pre-historic Cpu's" http://www.jetnet.ab.ca/users/bfranchuk
Now with schematics.
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu       in the body. http://f-cpu.seul.org/