From: Weddington, E. <Eri...@at...> - 2010-11-02 04:11:08
|
> -----Original Message----- > From: John Myers [mailto:ato...@gm...] > Sent: Monday, November 01, 2010 9:34 PM > To: Borja Ferrer > Cc: avr...@li... > Subject: Re: [avr-llvm-devel] Load / Store > > > Another thing, i dont know how feasible is doing this, > but should we make program and data space addrs transparent > to the user? > > > > Yes I believe that would be a useful feature. > I think we should try as much as possible without, of course, > violating any language standards. > It would allow users to write more portable/generic code. > We probable should have a command line option to > enable/disable this so users have more control. > LLVM has an address space qualifier mechanism already so I > don't think it will take too much work. > I think most of the work of making it transparent will need > to be done in the front ends and optimizer passes. Either way > (like a lot of commercial embedded compilers) we'll need to > extend the type qualifiers to include things like flash, > eeprom, near / far pointers... I definitely agree with the above, except for the part about a command line option: I would suggest that there be no command line option for this. It will just be extra work for something that I doubt anyone will ever use (a command-line option). Just implement the feature. |