Installing GCC

Installing GCC

Log in to the GCC download page: https://gcc.gnu.org/ Click on the Mirrors in the Download section on the right Select a suitable mirror address Select releases/ Scroll down to find and enter the gcc-15.2.0/ directory Click to download gcc-15.2.0.tar.xz (or gcc-15.2.0.tar.gz) Upload the gcc-15.2.0.tar.xz file to the server $ ls gcc-15.2.0.tar.xz Use the following command … Read more

Ansible: From Beginner to Abandonment (Twenty-Seven)

Ansible: From Beginner to Abandonment (Twenty-Seven)

Setting Environment Variables for Managed Nodes in Ansible Ansible Playbook sets variables for managed hosts through <span>environment</span>. – name: test environment hosts: all become: true gather_facts: true environment: test_path: testpath PATH: "/usr/local/custon_software/bin/:{{ ansible_env.PATH }}" tasks: – name: get env ansible.builtin.shell: /bin/env register: shell_result – name: print env ansible.builtin.debug: var: shell_result.stdout_lines In this example, Ansible adds … Read more

Comprehensive Guide to Installing Python

Comprehensive Guide to Installing Python

1. Download Python Download Python Click here to go to the Python download page On the download page, you can see many different version download links. Among them, the ones marked as x86 are 32-bit installers, while x86-64 are 64-bit installers. The executable installer is a complete installation package that can be installed directly after … Read more

The Secrets of Python Variables and Data Types

The Secrets of Python Variables and Data Types

Hello everyone, today let’s talk about variables and data types in Python. As a Python tutorial author, I’ve found that many beginners feel confused about these basic concepts. Don’t worry, follow me to learn, and I will help you understand these “seemingly complex” concepts in the simplest way. Variables: The “Containers” in Python In my … Read more

Lesson 3: Python Variables and Data Types

Lesson 3: Python Variables and Data Types

In programming, a variable is like a “cabinet” for storing data, and the data type determines the types of data that can be stored inside the cabinet. Together, variables and data types dictate how a program processes information, forming the foundation for building program logic and functionality. Once, Xiao Ming opened a grocery store and … Read more

Understanding The Stack In Embedded Programming

Understanding The Stack In Embedded Programming

What is a Variable? Variables can generally be subdivided as shown below: The focus of this section is to help everyone understand the “stack” in the memory model, temporarily ignoring the situation of “static variables” and agreeing on the following: “Global variables” are simply assumed to be “ordinary global variables”; “Local variables” are simply assumed … Read more

C Language Essentials: Detailed Explanation of Functions

Click the blue words to follow us This article introduces the definition of functions in C language and the use of sub-functions. It then explains variable scope, defines global variables, static variables, read-only variables, variable initialization, and so on. 1. Function Definition // Define a function int func(int a, int b) { } <return type> … Read more

Detailed Explanation of Storage Classes in C Language

The storage classes in C determine the lifetime, visibility, memory location, and initial value of variables. There are four storage classes in C: Automatic External Static Register Storage Class Memory Location Default Value Scope Lifetime auto RAM Uninitialized Value Local Inside Function extern RAM 0 Global Declared anywhere in the program before the end of … Read more

Viewing Variables in STM32CubeIDE

Viewing Variables in STM32CubeIDE

ST has launched a free compilation and debugging development environment STM32CubeIDE, which is gaining more attention and use among STM32 users. A common question during the development process based on STM32CubeIDE is how to view variables during debugging. Here, I will briefly demonstrate the implementation process. I defined two global variables in the project, as … Read more

Installing Graphviz on Linux

Installing Graphviz on Linux

Introduction:<span>Graphviz</span> is an open-source graph visualization software developed by AT&T Labs. It uses the DOT language to describe graphs and generates graphical representations of these graphs. Graphviz can create structured diagrams such as state machines, flowcharts, network diagrams, circuit diagrams, etc., which can be used for various purposes including documentation, testing, and database modeling. 1. … Read more