Ouch... I knew about array decay, but I didn't knew about that weird behavior of array dereference when it has the (somehow function pointer like) syntax "T (*v)[U]". The only...
So, I've a simple operating system and now want to implement empty C systemcalls functions like for instance _open, _close, etc. So, now there are also reentrant versions and ...
Are code movement bugs on windows a thing? O.o Or is my compiler broken? If I add the printf (can even place it somewhere else) in the following code, then the application wo...
Hey guys. I'm trying to convert some C code into more modern C++ code, but I don't know how to design it properly. I'm trying to make make a structure containg the current st...
Hey guys, I've a question about bluetooth modules. Let's say I have a module like this: https://www.amazon.de/dp/B00K85FW4G/ref=asc_df_B00K85FW4G57555963/?tag=googshopde-21&cr...
So, I finally found a project that I like but I need to learn some stuff beforehand :S I'd like to use a linear potentiometer with dc motor and looked at some parts but the d...
Can anyone post an article explaining expanding of variadic template arguments? I only find solutions that don't work for me. Like they have "template<typename ... T> void foo...
@QNeko @MasterZiv I don't see anything there specifying your described behavior of static variables inside functions. Also i can't see anything you described in my armv7e-m d...
Can you give a syntax correct example? As far as I know this can't work. You can only pass pointers in C and thus the sizeof() of it will always be the size of the pointer. si...
Uhm, really? o.o As far as I know it's just read again from memory as the memory content might have changed. And synchronization of the data cache isn't done by adding an inst...
Didn't u forget that one has to also ship the qt libraries used to build your app? CMake is shit. Why do I want to generate a visual studio project when I already have one? T...
Guys, a quick question: If I have a custom section that I place some data in like: static unsigned char __attribute((section(".DTCM.Buffers.Buffer1"))) Buffer1[1024]; What ar...
What do you mean by "it"? The volatile in the above example just made sure, that the instructions used for loading data where not optimized. We did this: // 1. load data from ...
How cut? Do you receive wrong data or is nothing send at all after some time? Can you give more information? Did you try to use the interrupt that is triggered when the buffer...
Isn't that kinda dumb? Either it's initialized once at startup of the application (init of data section) so the function must not check it OR the static variable is in .bss an...
How would you expect a function waiting for an event and using a timeout in a system with multiple threads, processes and interrupts to work if the timeout expires, then the e...
If u use a linker, it doesn't save function names in executable. An archiver doesn't create an executable, it rather creates a file made of multiple object files and those aga...
Don't you have to dereference the temp->next then, too, in order to hardcopy the struct? Or is the next no pointer? O.o Or what is happening there? And I never copied full str...
As a totally C enthusiast and C++ denier I ask myself if I should read a C++ book. I'm looking for a C++ book that teaches modern C++ and the way you should use C++ today, but...
Soooo, yesterday before I went to bed I was thinking about making a function that takes only one parameter. And that parameter would be of the type of a function pointer to a ...