__attribute__ examples

Do not optimise the contents of a function Remove the in and out code for a function The compiler does not generate prologue and epilogue sequences for functions with: Avoiding Padding You can used the packed variable attribute. For example in the following code, type c_t will have a size of 3 bytes and there […]

Read More

Power of

To the power of Note that in math notation ^ is used, but it can’t be used in C because it’s used as a bitwise operator. [Mathematics] xy = pow(x, y) [In programming]

Read More

DateTime Issues

mktime() causes crashing, memory leak??? We’ve found on the ESP32 that using this would cause inexplicable runtime crashing : Changing the definition to this sovled it:

Read More