Introduction to CMake Basics

Introduction to CMake Basics

This article mainly refers to this link. 1. CMake Compilation Principles CMake is a cross-platform build tool that is more advanced than make and much easier to use. CMake primarily involves writing a CMakeLists.txt file and then using the cmake command to convert it into a makefile required by make. Finally, the make command compiles … Read more

Differences Between GCC and G++: A Comprehensive Guide

Differences Between GCC and G++: A Comprehensive Guide

GCC (GNU Compiler Collection) and G++ are both compilers developed by GNU, but they have some functional differences. Although they belong to the same toolset, the main difference lies in the programming languages they support and how they handle the compilation of source code. Here is a detailed introduction and comparison of GCC and G++. … Read more

Highlights of Keil Compiler AC6 Compared to AC5

Highlights of Keil Compiler AC6 Compared to AC5

Follow+Star Public Number, don’t miss the wonderful content Author | strongerHuang WeChat Public Account | Embedded Column The latest version of Keil MDK no longer includes the AC5 compiler by default (but AC5 can be installed manually), yet AC5 is still the compiler used by most engineers. Readers who have used Keil MDK (Arm Compiler … Read more

C++ LED Blinking Program Based on Keil and STM32

C++ LED Blinking Program Based on Keil and STM32

Author | strongerHuang WeChat Official Account | Embedded Column Generally speaking, programming on microcontrollers is done in either assembly or C language, and it is rare to use C++ for development. So, can we really use C++ for microcontroller development? The answer is definitely yes! Below, I will discuss some content about writing a LED … Read more

Setting Up STM32 Development Environment in VSCode

Setting Up STM32 Development Environment in VSCode

Follow+Star Public Number, don’t miss wonderful content Author | Nuan Nuan’s Dilemma Source | CSDN As we all know, Keil is a paid software. Although it can be used with a workaround, many companies are still a bit hesitant, and many readers may have received ** letters. Previously, when developing microcontroller projects, Keil was one … Read more

Applications of Assembly Language

Applications of Assembly Language

In the early days of programming, most applications were partially or entirely written in assembly language. They had to adapt to small memory and run efficiently on slow processors. As memory capacity increased and processor speeds rapidly improved, programs became increasingly complex. Programmers also turned to high-level languages such as C, FORTRAN, COBOL, which offered … Read more

Facebook’s Preferred Programming Languages: Hack, Python, C++, Rust

Facebook's Preferred Programming Languages: Hack, Python, C++, Rust

Produced by | OSC Open Source Community (ID:oschina2013) Meta has announced the approval of Hack, Python, C++, and Rust as the preferred programming languages for employees and developers to build software on its platform. The company stated to The Register that supporting a programming language is not a decision that can be made lightly. “It … 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

Calling Python from C++

Calling Python from C++

Click the above“Mechanical and Electronic Engineering Technology” to follow us 1. Configure Header Files Add the include directory under the Python installation directory to the header file directory. The operation path in Visual Studio 2022 is: Properties –> C/C++ -> General-> Additional Include Directories C:\Users\AppData\Local\Programs\Python\Python39\include 2. Configure lib Directory Add Python39.lib to the compilation link. … Read more

Detailed Differences Between C++ and C#

Detailed Differences Between C++ and C#

The differences between C++ and C# are as follows: Language Type C++ is a low-level language, while C# is a high-level language. Lightweight Language Compared to C#, C++ is a lightweight language because it requires including C# libraries before compilation, resulting in larger binary files for C#. Performance C++ code runs faster than C# code, … Read more