| David Prentice 06/10/09 11:21 Read: 229 times Wormshill England |
#165992 - The compile will compile what you tell it Responding to: Rob Stoffels's previous message |
A compiler may do some optimisations on your behalf.
So you must write unambiguous code and tell the compiler if some variable is volatile. You can examine the .LST output from the compiler and you will see exactly which 8051 instructions are being generated. Obviously you have to read the data sheet for your particular device. But your example does not access any xdata at all. I would commonly use all ports for i/o and use no external memory at all. But if you want to use xdata you need to generate the requisite MOVX instructions. There is no secret spy in FLIP that attacks your code. David. |



