Tag Archives: c++

11th: watch your compiler warnings

Few, most important in my opinion, however mostly overlooked GCC compiler switches: -Wall: enables all the warnings about constructions that some users consider questionable, very likely a programming mistakes -Wextra: enables some extra warning flags that are not enabled by … Continue reading

Posted in en | Tagged | Leave a comment

OpenEmbedded ccache integration

OpenEmbedded is a framework for building (linux based) distributions. It's something like "Gentoo for embedded systems". Ccache is a tool that allows to reuse building results thus gives big speed improvements for frequent rebuilds (>10x faster or more then full … Continue reading

Posted in en | Tagged , | Leave a comment

Large C++ Project Build Time Optimisation

When you hit some level of code size in a project you starting to observe the following sequence: Developer creates and tests a feature Before submitting commit to repository update/fetch/sync is done Developer builds project again to check if build/basic … Continue reading

Posted in en | Tagged | Leave a comment

Assert: To Abort Or Not To Abort, That's The Question

Everyone agrees that internal state checking using assert(), Q_ASSERT(), assert are good. Programmer can declare expected input (asserting parameters), internal state (invariants) and verify return values (postconditions) and runtime will verify such expectations. There are languages with direct support for … Continue reading

Posted in en | Tagged , , | Leave a comment

Automatic random testing for QT-based projects

My current project I'm working on is based on embedded systems and QT platform. Of course the very first task in the project is to implement some kind of testing method to get feedback on software quality. The test system … Continue reading

Posted in en | Tagged , , , , | Leave a comment