[Icc-avr] RFC: __flash vs. const

Richard richard-lists at imagecraft.com
Tue Nov 6 12:47:36 PST 2007


It's not just that. It's more an issue of supporting one extra switch 
(meaning more opportunities for mis-features to creep in) and also for support.

I think I will bite the bullet and call it 7.20 for a big jump and 
supporting only __flash. People back-porting to older compiler 
releases only need to add
__flash=const

in the IDE Predefined Macros box for their source code to be backward 
compatible.

Thanks for all the comments.

At 09:58 AM 11/6/2007, Jon O'Donnell wrote:
>If the problem is just the library header files, why not just have
>#ifdef/#else/#endif sections to the .h files and have the compiler define
>__USING__flash to allow the preprocessor to pick the appropriate section?

// richard (This email is for mailing lists. To reach me directly, 
please use richard at imagecraft.com) 



More information about the Icc-avr mailing list