The Increasing Use of C++ in Embedded Linux Development

The Increasing Use of C++ in Embedded Linux Development

Follow our official account to keep receiving embedded knowledge! In embedded Linux projects, should we develop in C or C++? I think it depends on the preferences and expertise of the lead developer. Here is a popular topic in the embedded field on Zhihu; let’s see what the experts say: Original link: https://www.zhihu.com/question/374663834 Several highly … Read more

The Evolution of Structures from C to C++

The Evolution of Structures from C to C++

1. Initial Impressions of Structures in C and C++ A structure (struct) can encapsulate different types of data together, forming a new, more complex data type. For example, in C, if we want to describe a student’s information, such as name, age, and score, we can define a structure like this: struct Student { char … Read more

Is Rust Faster Than C?

Is Rust Faster Than C?

Recently, someone on Reddit asked: Under the same conditions, what method would allow Rust to achieve better performance than C? I think this is a great and interesting question! It is actually quite difficult to answer because it ultimately depends on the specific meaning of “the same conditions”. I believe this also makes comparisons between … Read more

Microsoft Plans to Replace C and C++ with Rust

Microsoft Plans to Replace C and C++ with Rust

Author: Wang Wenjing Yesterday, the Microsoft Security Response Center (MSRC) team updated an article on their official website regarding their latest plan to use Rust as a replacement for C, C++, and other programming languages to improve application security. This plan includes further in-depth discussions on aspects such as spatial memory safety, temporal memory safety, … Read more

The Battle of Code: Rust vs C for the Safety of a Billion Devices!

The Battle of Code: Rust vs C for the Safety of a Billion Devices!

Introduction: Attention everyone! Tweede Golf has made a significant move; they want to uncover how to expose memory vulnerabilities and prove the superpowers of the Rust language in protecting the safety of billions of devices. The Dutch Rust software engineering consultancy Tweede Golf recently conducted an experiment that yielded surprising results, revealing why Rust is … Read more

Comprehensive Collection of C/C++ Interview Knowledge

Comprehensive Collection of C/C++ Interview Knowledge

Interview questions related to C and C++ are relatively rare compared to those in the Java domain. This article is a valuable summary of C and C++ interview knowledge points. const Function Modifies a variable to indicate that the variable cannot be changed; Modifies a pointer, which can be a pointer to a constant (pointer … Read more

In-Depth Exploration of C and C++: The Two Pillars of the Programming World

In-Depth Exploration of C and C++: The Two Pillars of the Programming World

Click the blue text above to follow us Introduction In the world of computer science, C and C++ are undoubtedly two extremely important programming languages. They not only shape the foundation of modern software development but also possess unique charms and application scenarios. C was born around 1972, developed by Dennis Ritchie at Bell Labs, … Read more

Differences and Connections Between C and C++

Differences and Connections Between C and C++

Differences and Connections Between C and C++ Introduction C and C++ are two widely used programming languages with a long history, playing significant roles in software development. Despite their many similarities, there are also notable differences. This article will explore the similarities and differences between these two languages in detail. 1. Basic Overview 1. C … Read more

Comparison of Speed Between Rust and C

Comparison of Speed Between Rust and C

Author | Kornel Translator | Sambodhi Planner | Zhao Yuying This article was originally published on the author’s personal blog and is translated and shared by InfoQ Chinese site with the authorization of the original author Kornel. Programs written in Rust should have runtime speeds and memory usage comparable to those written in C. However, … Read more