ARMmbed / ATParser

Parser for AT commands and similar protocols.
35 stars 27 forks source link

Insert compiler optimization barriers #15

Closed betzw closed 6 years ago

betzw commented 6 years ago

Insert compiler optimization barriers into methods MyBuffer::put() & MyBuffer::get()

This modification is required to force the compiler to increment the read/write location pointers _rloc and _wloc only after having read/written the data from/to the buffer. This happened on my side on a NUCLEO_F401RE + X-NUCLEO-IDW01M1 using GCC_ARM toolchain (version 6.3.1 20170620 (release)).

cc @geky