Tag Archives: c++

ARM Tiny Linux Emulated in QEMU

Free Electrons has an excellent example of a tiny ARM Linux demo that runs in QEMU. The footprint, including everything, is about 2.1 M.┬áThe full text below is for your convenience, be sure to visit the original site. From this … Continue reading

Posted in All, C/C++, Hardware, Tools | Tagged , , , , , , , , , | Leave a comment

ARM C/C++ Software Stack Back Trace

Printing stack trace pragmatically from C/C++ code is an efficient way to speed up troubleshooting and debugging. Since testing, debugging, and sustaining cost more than half of software total cost, printing backtrace is very important to producing quality software quickly. … Continue reading

Posted in All, C/C++, Hardware | Tagged , , , , , , | 3 Comments

ARM Cache Flush on mmap’d Buffers with __clear_cache()

Memory mapped operation from user space on devices is a powerful technique to improve runtime performance. Some ARM processors use caches keyed to virtual addresses, instead of normally to physical addresses. The problem, is that if the kernel maps the … Continue reading

Posted in All, C/C++, Hardware | Tagged , , , , , , , | 2 Comments

ARM MMU Theory and Practice

In his blog “Turning on an ARM MMU” Andrew Murry listed the schemes: a memory manager would use in their combination form: Split the entire virtual range into pages and point them all to one same physical page. This is … Continue reading

Posted in All, C/C++, Hardware | Tagged , , , , , , , , | 2 Comments

Mapping DMA Buffers to User Space on Linux with mmap

Memory mapped operation from user space on devices is a powerful technique to improve runtime performance of a user space application. The technique, conceptually is simple, yet is often hard to do correctly.

Posted in All, C/C++, Hardware | Tagged , , , , , , | 2 Comments

C++ Scoped Lock with RAII

Resource Acquisition Is Initialization (RAII)[1] is a programming idiom used in several object-oriented languages like C++, D, Ada and Vala. The technique was invented by Bjarne Stroustrup[2] to deal with resource allocation and deallocation in C++. In this language, the … Continue reading

Posted in All, C/C++ | Tagged , , | Leave a comment

Dr Dobbs Volatile The Multithreaded Programmers Best Friend

Check this out, it ties a volatile qualifier into the C++ type system thus use of volatile is type checked at compile. How exactly it is done? … http://www.drdobbs.com/cpp/volatile-the-multithreaded-programmers-b/184403766

Posted in All, C/C++ | Tagged , , , , , , | Leave a comment