Comprehensive Performance Evaluation of Embedded Linux

Comprehensive Performance Evaluation of Embedded Linux

Click on the above “Embedded Application Research Institute” and select “Top/Star Public Account” Useful Benefits Delivered First-Hand! Source | Embedded Application Research Institute Compiled & Formatted | Embedded Application Research Institute In the early stages of pre-research for embedded projects, we often need to evaluate the resources and performance of a certain platform. Below are … Read more

Introduction to Assembly Language: Using Debug Tools

Introduction to Assembly Language: Using Debug Tools

1. Physical Memory Layout Formula When you see an address like 0B3F:0100 in debug, remember the physical address calculation formula: For example, 0B3F*10h+0100=0C3F0. This formula explains why CS:IP always points to strange memory locations (a legacy black magic of old programmers). 2. Core Command Anatomy Command Prototype: -a [address]Parameter Description: If address is not filled, … Read more

C++ Best Practices for Safety

C++ Best Practices for Safety

Click the blue text Follow us Due to changes in the public account’s push rules, please click “Looking” and add “Star Mark” to get exciting technical shares at the first time Source from the internet, please delete if infringed C++ Best Practices: 1. Tools 2. Code Style 3. Safety (This Article) 4. Maintainability 5. Portability … Read more

Comprehensive C++ Knowledge Summary: A Must-Read for Beginners!

Comprehensive C++ Knowledge Summary: A Must-Read for Beginners!

Before learning C++, we implemented sequential lists and linked lists using C, which are the foundation of learning data structures. It’s always good to have early exposure. After learning C++, we implemented them twice again, once using classes and once using template classes. Now, let’s move on to the first topic of C++—classes. Classes When … Read more

How to Retrieve Windows System Information in C++

How to Retrieve Windows System Information in C++

Click the above“Mechanical and Electronic Engineering Technology” to follow us In C++, you can use Windows API functions to retrieve various information about the Windows system. Below are some common API functions and sample code for obtaining Windows system information: 1. Operating System Version #include <windows.h> #include <iostream> int main() { OSVERSIONINFOEX osvi; ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX)); … Read more

Python Memory Management: The Core of Performance Optimization

Python Memory Management: The Core of Performance Optimization

Hello everyone, I am Mo Yun. Today we will discuss a deeper but very important topic: Python's memory management. Although Python automatically handles memory allocation and deallocation for us, understanding how it works is crucial for writing efficient code. Don't worry, I will use simple metaphors and examples to help you easily understand this seemingly … Read more

Understanding Free() vs Delete() in C++

Understanding Free() vs Delete() in C++

In this topic, we will learn about the free() function and the delete operator in C++. free() Function In C++, the free() function is used to dynamically release memory. It is a library function used in C++, defined in the stdlib.h header file. This library function is used for pointers pointing to memory allocated using … Read more

Detailed Explanation of malloc() and new in C++

Detailed Explanation of malloc() and new in C++

Both malloc() and new serve the same purpose: they are used to allocate memory at runtime. However, malloc() and new differ in syntax. malloc() is a standard library function defined in the stdlib header file, whereas new is an operator. What is new? The new operator is used for memory allocation at runtime. The memory … Read more

C++ Tutorial – Detailed Explanation of Differences Between C++ and Python

C++ Tutorial - Detailed Explanation of Differences Between C++ and Python

What Is C++? C++ is a high-level, general-purpose programming language developed by Bjarne Stroustrup in 1979. It is an extension of the C language, which includes classes. The concept of object-oriented programming was introduced in the C++ language. C++ is also known as an object-oriented programming language. It was originally designed for system programming and … Read more

Rust Through The Eyes Of A Go Developer

Rust Through The Eyes Of A Go Developer

Hi everyone, I’m Tiger. This time, I want to talk about Rust.What’s so great about Rust?As an old user of Go, how do I view Rust?Let’s have a good discussion on this topic today. One of the most troublesome issues for us programmers is memory management, such as dangling pointers, memory leaks, data races, etc., … Read more