[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] How to use pgmspace.h in a library source without war
Re: [avr-gcc-list] How to use pgmspace.h in a library source without warning?
Mon, 10 Jun 2013 22:58:16 +0000
> -----Original Message-----
> From: Georg-Johann Lay [mailto:address@hidden
> Sent: Saturday, June 08, 2013 6:36 AM
> To: Weddington, Eric
> Cc: Thomas D. Dean; address@hidden
> Subject: Re: [avr-gcc-list] How to use pgmspace.h in a library source
> without warning?
> Weddington, Eric wrote:
> > computers get faster every year
> Computers don't get faster.
> It's just the case that the not-so-fast computers are declared as
> and thrown away an then replaced by a-bit-faster computers; again and
> again and again...
Pedantically, yes. That's what I was referring to.
> I don't think that things should get more complicated and more resource
> gulping -- in the contrary: things should get easier to grasp and to
> handle and to understand.
In a way, lib/device would actually be simpler then lib/arch. When a user
compiles a program, they compile it for a specific device, not an architecture.
Then the library for the architecture gets linked in.
The only thing that I see that gets complicated is transitioning from one style
to the other, and then the increase in compilation. Again, I see it being
offset by being able to build on newer, faster computers and by building in
parallel. Will it be completely offset? No, of course not. But then we can
really design libraries to be specific to devices and get rid of some of the
kludges and compromises that are in there in building it per arch.