[fpc-pascal] AVR Busy Wait implementation

Florian Klaempfl florian at freepascal.org
Sat Jan 23 11:53:31 CET 2016


Am 18.01.2016 um 23:04 schrieb Simon Ameis:
> Thanks for the hint! I've had declared delay_loop_1 and delay_loop_2
> just inside the implementation section.
> 
> Maybe these points should be added to documentation for inlining?

I am against documenting this:
- inline is only a hint to the compiler
- the exact rules are very subtile and might differ between platforms/abi
- the behaviour might change between different compiler versions
So it is hard to document this precisely.

IMO the only proper solution is to implement delaying as compiler
intrinsics as it is done by gcc as well.



More information about the fpc-pascal mailing list