Detailed Explanation of Inline Functions in C++

Detailed Explanation of Inline Functions in C++

A key feature of C++ is the inline function. Therefore, let’s first understand the usage and intended applications of inline functions. When a function is declared as an inline function, the compiler will replace the location of the function call with the definition of the inline function at compile time. Any changes to the inline … Read more

Common Uses of Preprocessor Directives in Embedded Software

Common Uses of Preprocessor Directives in Embedded Software

Many excellent codes utilize preprocessor directives to enhance their functionality. Today, we will discuss the content related to preprocessor directives. The common preprocessing directives are as follows: # directive, has no effect #include includes a source code file #define defines a macro #undef undefines a macro #if if the given condition is true, compile the … Read more

Most Common Software in Embedded Engineering

Most Common Software in Embedded Engineering

To understand which software is commonly used in the electronics engineering field, we first need to look at some of the relevant technologies and industry applications. Electronics engineering, also known as “low voltage technology” or “information technology”, can be categorized roughly as shown in the figure. The applications of electronics engineering cover electric devices, as … Read more

C++ Basic Syntax and Underlying Details Explained

C++ Basic Syntax and Underlying Details Explained

According to the latest data from the world-renowned language ranking TIOBE (March 2021), C++ ranks fourth in the list, and has consistently held the third place in the list of popular languages. In terms of low-level access, performance pursuit, and power consumption reduction, C++ has almost no rivals, easily solving problems ranging from embedded systems … Read more

Research on Acoustic Configuration of Embedded Devices

Research on Acoustic Configuration of Embedded Devices

1 Introduction A year ago, I researched an embedded device and found its acoustic configuration logic quite intriguing, but later focused on vulnerability exploitation and did not delve deeper. Recently, while studying wireless communications like sub-GHz, Bluetooth, and RF, I became interested again in transmitting information via acoustic signals, which led to this article documenting … Read more

Introduction to C++: A Beginner’s Guide

Introduction to C++: A Beginner's Guide

— Welcome To C++ — There are various programming languages, and here we introduce a new programming language called C++. So what is C++?C++ is a statically typed, compiled, general-purpose, case-sensitive, and irregular programming language, supporting procedural programming, object-oriented programming, and generic programming. C++ is a high-level language developed by Bjarne Stroustrup at Bell Labs … Read more

Comprehensive Guide to Improving Code Portability in Embedded Development

Comprehensive Guide to Improving Code Portability in Embedded Development

Improving code portability in embedded development can be approached from the following aspects: 1. Follow Standards and Specifications 1. Programming Language Standards Strictly adhere to C or C++ language standards, avoiding the use of compiler or platform-specific extensions. For example, avoid using non-standard compiler built-in functions to ensure that the code compiles correctly in different … Read more

Detailed Compilation Tutorial for Windows 10 Carla Source Code

Detailed Compilation Tutorial for Windows 10 Carla Source Code

Author | Automotive Enthusiast Editor | Heart of Autonomous Driving 1. Preparation Work 1.1 Hardware Environment Requirements 1) Windows 64-bit operating system. The simulator should run on any 64-bit Windows system. 2) 165GB of disk space. CARLA itself will occupy about 32GB, and related major software installations (including Unreal Engine) will take about 133GB. 3) … Read more

CLion Tutorial: Code Coverage

CLion Tutorial: Code Coverage

Operating System: Linux / macOS / Windows Project Format: CMake Management Suite: Run | Manage Coverage Reports Ctrl+Alt+F6 Coverage Settings: Settings Ctrl+Alt+S | Build, Execution, Deployment | Coverage In CLion, you can run CMake applications and tests with code coverage measurement. The code coverage results provide the percentage of code lines executed during runtime and … Read more

Using CMake for Android NDK Development

Using CMake for Android NDK Development

Today’s Tech News Yesterday, Toshiba Corporation announced the development of a new generation of lithium batteries specifically for electric vehicles, which can be quickly charged in just 6 minutes. Traditional electric vehicle lithium batteries take 30 minutes to charge to about 80%, while the new generation lithium battery can charge to 90% in just 6 … Read more