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

[Ubuntu][GCC] Downloading and Compiling GCC Source Code

[Ubuntu][GCC] Downloading and Compiling GCC Source Code

1. Download the GCC installation package. You can search for the official address to download it. If you cannot download it, you can try selecting a required GCC version from gitee.com/FIRC/gcc-cn-mirror. Note that if you are downloading the source code from gcc-cn-mirror, you can skip steps 2 and 3 and proceed directly to step 4 … Read more

Linux Command Line Proxy Configuration

Linux Command Line Proxy Configuration

Linux Command Line Proxy Configuration In Linux, many command line tools (such as <span>curl</span>, <span>wget</span>, <span>git</span>, <span>pip</span>, etc.) require network access. When in a restricted network environment, it is often necessary to configure a HTTP/HTTPS/SOCKS5 proxy. This article will systematically introduce how to set up proxies for common tools. 1. Environment Variable Proxy The most … Read more

How to Add a Directory to the PATH Environment Variable in Linux

How to Add a Directory to the PATH Environment Variable in Linux

When entering commands in the Linux command line, you are essentially instructing the shell to run an executable file with a specified name. Executable programs in Linux (such as <span>ls</span>, <span>find</span>, <span>file</span>, etc.) are typically stored in multiple different system directories. As long as they have executable permissions, files stored in these directories can be … Read more

A Comprehensive Guide to Shell Scripting from Basics to Practical Applications

A Comprehensive Guide to Shell Scripting from Basics to Practical Applications

Source: Beginner’s Station 1. Introduction to Shell 1.1 What is Shell Introduction to Shell Scripting # Why introduce Shell Last time I published a detailed article on Linux commands, which received a lot of recognition from friends. Some fans privately messaged me, asking for a shell programming guide. After some preparation, I spent 2 weeks … Read more

Code Testing and Environment Setup for Sqlite3 on Arm Linux Development Boards

Code Testing and Environment Setup for Sqlite3 on Arm Linux Development Boards

·1. Test Code ·2. Cross Compilation oCommand Structure oFunction of Each Part ·3. Execute Test ·4. Environment Variable `$PATH` o4.1 System-level Configuration Files (Global Settings) o4.2 User-level Configuration Files (Personal Settings) o4.3 Shell Built-in Defaults ·5. How to Find the Source of the Current `PATH`? ·Common Modification Scenarios 1. Test Code // test_sqlite.c #include <stdio.h> … Read more

Quick Deployment of Single Node Single Disk Architecture MinIO on Linux

Quick Deployment of Single Node Single Disk Architecture MinIO on Linux

Download MinIO Server Files This step describes how to deploy MinIO in a single node single disk (SNSD) configuration for early development and evaluation. The SNSD deployment does not provide any additional reliability or availability beyond what is offered by the underlying storage volume implementation (RAID, LVM, ZFS, etc.). The SNSD deployment uses a zero-parity … Read more

Installing GCC from Source

Installing GCC from Source

My laptop is running CentOS 7 with a version of GCC installed via yum, but this version is too old, so I need to install a newer version of GCC. 1. First, download from the internethttp://mirror.hust.edu.cn/gnu/gcc/ Find the appropriate version and download it. 2. Extract the compressed package # cd /usr/local/# tar -zxvf gcc-6.4.0.tar.gz 3. … Read more