Ben Jackson <[EMAIL PROTECTED]> wrote: > It would probably work to add an empty asm, as long as you used the > __volatile attribute to scare gcc away from reordering code in the > loop.
asm volatile(:::"memory"); works. However, as others already noted, the functions from <util/delay.h> are preferrable, as their execution cycle count is simply known beforehand. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list