Lindevs
Programming tutorials, blogs & resources
Menu
  • Home ×
  • Tutorials
    • Programming Language
      • Python
      • PHP
      • Java
      • C
      • C++
      • JavaScript
    • Machine Learning
      • TensorFlow 2
      • PyTorch
    • Computer Vision
      • OpenCV
    • Embedded System
      • Raspberry Pi
      • Arduino
      • ESP8266
      • XIAO SAMD21
    • Home Automation
      • Tasmota
    • Mobile App Development
      • Android
      • Flutter
    • Game Development
      • Unity
    • Framework
      • Laravel
      • Symfony
    • Operating System
      • Linux
        • Ubuntu
      • Windows
    • Database
      • MySQL
    • DevOps
      • Command Line
      • Web Server
      • Grafana
      • Networking
      • Security
      • Containerization
  • Code Snippets
  • Electronics
    • Circuits
  • Questions
    • PHP
  • Contact
    • Sign In

Command Line

Check Which Loops Were Vectorized using MSVC Compiler

Check Which Loops Were Vectorized using MSVC Compiler

  • May 24, 2025
  • Command Line
  • 0 Comments
  • 151 Views
Modern compilers often apply auto-vectorization to loops to improve performance by utilizing SIMD instructions. This enables the CPU to execute multiple operations simultaneously using vector registers, significantly enhancing performance in...
Compare Two Branches in Git

Compare Two Branches in Git

  • May 20, 2025
  • Command Line
  • 0 Comments
  • 86 Views
Before merging or deleting a branch, it's a good idea to compare it with another branch. This helps to review the changes it contains and decide whether it's ready to...
Check Code Standard Compliance using gcc or g++ Compiler

Check Code Standard Compliance using gcc or g++ Compiler

  • May 19, 2025
  • Command Line
  • 0 Comments
  • 89 Views
When writing C or C++ code, it's essential to ensure the code complies with the intended language standard, especially if you're targeting environments that require strict compatibility (e.g., embedded systems...
Detect Memory Errors with AddressSanitizer using gcc or g++ Compiler

Detect Memory Errors with AddressSanitizer using gcc or g++ Compiler

  • May 18, 2025
  • Command Line
  • 0 Comments
  • 242 Views
Memory errors like use-after-free, buffer overflows, and memory leaks are some of the most common bugs in C and C++ - and some of the hardest to debug. Fortunately, the...
Expand Macros using MSVC Compiler

Expand Macros using MSVC Compiler

  • May 17, 2025
  • Command Line
  • 0 Comments
  • 57 Views
When developing in C or C++, macros defined with #define are powerful tools that can simplify code, improve readability, or enable conditional compilation - but they can also introduce subtle...
Check Which Loops Were Vectorized using gcc or g++ Compiler

Check Which Loops Were Vectorized using gcc or g++ Compiler

  • May 16, 2025
  • Command Line
  • 0 Comments
  • 150 Views
Loop vectorization is a powerful compiler optimization where repetitive operations (like array processing) are transformed into SIMD instructions. This allows the CPU to perform multiple operations in parallel using vector...
Check Stack Usage Per Function using gcc or g++ Compiler

Check Stack Usage Per Function using gcc or g++ Compiler

  • May 12, 2025
  • Command Line
  • 0 Comments
  • 276 Views
When working with low-level or resource-constrained applications - especially in embedded systems - understanding the stack usage of each function is crucial. Excessive or unexpected stack consumption can lead to...
Generate Assembly Code using MSVC Compiler

Generate Assembly Code using MSVC Compiler

  • May 11, 2025
  • Command Line
  • 0 Comments
  • 71 Views
Understanding how C or C++ code translates into assembly can provide valuable insight into performance optimization and low-level system behavior. This is particularly useful for developers interested in analyzing compiler...
Get Supported Options by gcc or g++ Compiler

Get Supported Options by gcc or g++ Compiler

  • May 4, 2025
  • Command Line
  • 0 Comments
  • 98 Views
The gcc and g++ compilers provide a wide range of options to control how code is compiled and optimized. Understanding these options is crucial for efficiently managing the build process...
Print Default Include Directories using gcc or g++ Compiler

Print Default Include Directories using gcc or g++ Compiler

  • May 2, 2025
  • Command Line
  • 0 Comments
  • 338 Views
When compiling C or C++ code, the compiler needs to locate the header files referenced in the source files using #include directives. These headers can come from the standard library...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • »
Buy Me a Coffee

Recent Posts

  • Get Linux Kernel Build Date and Time
  • 3 Methods to Lock Screen on Ubuntu
  • Get CPU Architecture on Linux
  • Set Positive Array Elements to Zero using C++ SIMD
  • Get Clang Compiler Version Used to Compile C++ Code

Archives

  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
Copyright © 2020 - 2025 · lindevs.com · All Rights Reserved