Re: >Is anyone using the IAR C compiler? I am starting to use it, and I >am quite surprised with the number of instructions (over 20) used to >implement a command of the type: > mystruct->a=0; >(only bank 0 is being used) >When I compared with the CCS compiler I found that the same >code was implemented with much less instructions (4). >Any comments or sujestions to do the IAR code more efficient. Make sure that you have defined the pointer type to be other than the default. The default uses three bytes, whereas a _bank0 pointer will use only one, and the code will be MUCH smaller. This one bit me, too. ______________________________________ Andrew E. Kalman, Ph.D. aek@netcom.com