Mithilesh Gaikwadesymith.hashnode.dev·Mar 19, 2024Enhancing Code Safety with #pragma Poison in GCCIn the realm of software development, ensuring code safety is a paramount concern that underpins the reliability and integrity of software systems. As developers navigate the complexities of programming, they rely on powerful tools and methodologies ...DiscussC
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 31, 2023Branch Prediction in C (using GCC)Branch prediction is a technique used in computer architecture to improve the flow in instruction pipelines. Pipelines are a key feature of modern processors, allowing multiple instructions to be processed simultaneously, each at a different stage of...DiscussC Programmingbranch prediction
DracoRXdracorx.hashnode.dev·Dec 30, 2023Guide : How to Setup C++ on MacOS with Sublime Text and gcc (without homebrew)Step 1 Install MacPorts for your respective version of MacOS.Installation process is as simple as installing the .pkg file and opening it. Step 2 Search for the version of gcc you wish to install. For this guide I'll be installing gcc13. Do as it sa...Discuss·1 likeSublime Text
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 24, 2023Pragmas are all about hints!The #pragma directive in C is used to provide additional information to the compiler. It's compiler-specific and can be used for various purposes, such as controlling compiler warnings, optimizing code, or specifying architecture-specific features. H...DiscussC Programmingpragma
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 24, 2023How does preprocessed code look?You can use the -E option with the GCC compiler to stop after preprocessing and display the preprocessed code. Here's a simple example: Example: Preprocessor Directives with GCC // main.c #include <stdio.h> // Define a constant #define PI 3.14159 ...DiscussC Programmingpreprocessor
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 15, 2023What is the C library?The system's C runtime offers a set of standard functions called the C library to developers so they may carry out typical tasks without having to start from scratch when writing code. It offers a number of features, such as memory management, string...Discusslibc
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 15, 2023How to install C development packages in Ubuntu?Following these instructions will update, upgrade, and install the required C development tools on a system utilizing the APT package manager, which is typically available in Debian-based distributions like Ubuntu: Update Package Lists: sudo apt up...Discussapt
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 14, 2023Static Compilation. Where is my printf?Static compilation is the process of compiling a computer program in such a way that all the library code that the program depends on is included within the program's executable file. This is done by linking the program with static libraries (.a file...Discussobjdump
Jyotiprakash Mishrablog.jyotiprakash.org·Dec 14, 2023How do I install Cygwin for software development?A free and open-source program called Cygwin gives Microsoft Windows a command-line interface and environment akin to that of Unix. It enables users to execute programs and utilities that Windows does not support natively and are normally only availa...Discuss·27 readsgnu
Pronod Bharatiyadata-intelligence.hashnode.dev·Nov 1, 2023Maximizing C Program Performance: A Comprehensive Guide to GCC Compiler OptimizationWhen it comes to writing efficient and high-performance software, optimizing your code is crucial. One of the essential tools in your arsenal for optimizing C programs is the GCC (GNU Compiler Collection). GCC provides a wide range of optimization op...Discuss·52 reads#SoftwareOptimization