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

Expand Macros using MSVC Compiler

Expand Macros using MSVC Compiler

  • May 17, 2025
  • Command Line
  • 0 Comments
  • 191 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
  • 370 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
  • 537 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
  • 189 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
  • 221 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
  • 670 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...
Check gcc or g++ Compiler Options Enabled by -march=native

Check gcc or g++ Compiler Options Enabled by -march=native

  • April 25, 2025
  • Command Line
  • 0 Comments
  • 571 Views
When you're optimizing code for performance, especially in C or C++, using compiler options like -march=native can significantly boost speed by enabling all the SIMD instruction sets and CPU-specific optimizations...
Build Program Manually using gcc or g++ Compiler

Build Program Manually using gcc or g++ Compiler

  • April 21, 2025
  • Command Line
  • 0 Comments
  • 171 Views
When we usually compile a C or C++ program, we just run a single command like gcc main.c -o test, and we have an executable. The compiler doesn't magically transform...
Expand Macros using gcc or g++ Compiler

Expand Macros using gcc or g++ Compiler

  • April 20, 2025
  • Command Line
  • 0 Comments
  • 249 Views
When you're working with C or C++ and using macros (via #define), it can be helpful to see what the preprocessor is actually doing - especially when debugging tricky macro...
Print Predefined Macros using gcc or g++ Compiler

Print Predefined Macros using gcc or g++ Compiler

  • April 19, 2025
  • Command Line
  • 0 Comments
  • 468 Views
When working with C or C++ code, it can be helpful to know what macros (via #define) the gcc or g++ compiler defines automatically. These predefined macros give you insight...
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • »
Buy Me a Coffee

Recent Posts

  • Call Function Before main Function using C++
  • Use Sccache with CMake
  • Set Maximum Cache Size using Ccache
  • 2 Methods to Set Cache Directory using Ccache
  • Get Current Configuration Options in Ccache

Archives

  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • 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