Hi, I am developing an application for ARM lpc2102.The code size is very critical so I decided to look for list file generated by Keil: var | = EXPAND
LDR R0=var LDRB R1,[R0,#0x0] MOV R0,#0x1 ORR R1,R0 LDR R0=var STRB R1,[R0,#0x0]
LDR R0=var LDRB R1,[R0,#0x0] MOV R2,#0x1 ORR R1,R2 STRB R1,[R0,#0x0]
Did you use the RealView Compiler with Optimize Level 3? This compiler really generates highly efficient code. Reinhard