> how does one teach gcc to generate optimal code for all sizes from 16 > to 64k? I'm not sure that you can - it depends a lot on the definition of 'optimal' and on the specific cpu you are going to run the code on. David -- David Laight: david@l8s.co.uk