看了汇编确实是多了一些语句,但是我想问是为什么?? 126: volatile unsigned char i,dot_ID=0; +00000551: 2422 CLR R2 Clear Register +00000552: 822E STD Y+6,R2 Store indirect with displacement
145: unsigned char i,dot_ID=0; +00000551: 2400 CLR R0 Clear Register +00000552: 01FE MOVW R30,R28 Copy register pair +00000553: 5BE3 SUBI R30,0xB3 Subtract immediate +00000554: 4FFF SBCI R31,0xFF Subtract immediate with carry +00000555: 8200 STD Z+0,R0 Store indirect with displacement
为什么用volatile定义,会出现这种情况?
|