How does an assembly instruction turn into voltage changes on the CPU?

I recently started reading Charles Petzold book titled Code, which so far covers exactly the kinds of things I assume you are curious about. But I have not gotten all the way through so thumb through the book first before buying/borrowing. This is my relatively short answer, not Petzolds…and hopefully in line with what you … Read more

What is the difference between RTOS and Embedded Linux? [closed]

Linux is a general-purpose OS (GPOS); its application to embedded systems is usually motivated by the availability of device support, file-systems, network connectivity, and UI support. All these things can be available in an RTOS, but often with less broad support, or at additional cost or integration effort. Many RTOS are not full OS in … Read more

Will printf still have a cost even if I redirect output to /dev/null?

Pretty much. When you redirect the stdout of the program to /dev/null, any call to printf(3) will still evaluate all the arguments, and the string formatting process will still take place before calling write(2), which writes the full formatted string to the standard output of the process. It’s at the kernel level that the data … Read more

What does this GCC error “… relocation truncated to fit…” mean?

You are attempting to link your project in such a way that the target of a relative addressing scheme is further away than can be supported with the 32-bit displacement of the chosen relative addressing mode. This could be because the current project is larger, because it is linking object files in a different order, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)