2006-06-08 12:41 AM
2006-06-07 03:40 AM
Hi
I ned to put a load of variables into a area of flash. I am using the IAR compiler. With other hardware types / compilers this could be done using the inline asembler commands, works well with the GNU ARM compiler. I cant get it to work with the IAR compiler, it does not do anything at all. I have turned of the optimiser but still nothing. Idealy i would have a C file that can use defines to set up a block of data that can be placed at a specific location in memory. I can do it using an asembler file but it limits what i can do with header files that they both use. Any help would be very much appreciated Thanks2006-06-08 12:41 AM
Thanks, i had given them a try already, but they dont fit in to the method that are other projects use. Some of the data will not be accessed directly, also the data comes from a variaty of header files and is all sequential, so using the @ or pragma directives is very long winded, is there a way to force the compiler to to optimise away parts of code that dont appear to be used?
as i said befor the GNU compiler can do it and it can also be done on PICs using hitide compiler. Any other things that anyone has tryed?