On 2026-05-04 16:23, Tomek CEDRO wrote:
This still does not solve issues on 8 and 16 bit platforms (i.e. non-atomic access, overflows). The problem may be just less visible / painful. I think we need "default" and "portable" implementation that would both provide POSIX compliant time functionality (int64_t)?
As far as I understand it - with 64 bit time, you have the same problem with non-atomic access on 32 bit platforms too. (Funnily enough, the time size change might be beneficial for 8bit CPUs afterall. Paid with more flash usage, true, but more eyes tackling the problem of non-atomic access because 32bit CPUs are still widely used.)
