DORSETRIGS
Home

compiler-construction (25 post)


posts by category not found!

DFA-based regular expression matching - how to get all matches?

Understanding DFA Based Regular Expression Matching How to Find All Matches Regular expressions regex are powerful tools for string pattern matching and manipul

3 min read 09-10-2024 36
DFA-based regular expression matching - how to get all matches?
DFA-based regular expression matching - how to get all matches?

How to install pywin32 module in windows 7

How to Install the Py Win32 Module in Windows 7 If you re a Python developer working on a Windows machine you might want to interact with Windows APIs automate

3 min read 08-10-2024 29
How to install pywin32 module in windows 7
How to install pywin32 module in windows 7

Would it be possible to add type inference to the C language?

Would It Be Possible to Add Type Inference to the C Language Understanding the Problem C is a foundational programming language that has been widely used for de

3 min read 08-10-2024 23
Would it be possible to add type inference to the C language?
Would it be possible to add type inference to the C language?

Least significant bits in function pointer

The Curious Case of the Least Significant Bits in Function Pointers Have you ever wondered what happens to the least significant bits LSBs of a function pointer

2 min read 07-10-2024 34
Least significant bits in function pointer
Least significant bits in function pointer

When inlining a C function, can an optimizing compiler dereference a pointer more times than explicitly written in the source code?

Understanding Pointer Dereferencing in C Function Inlining by Optimizing Compilers When inlining a C function a common question arises Can an optimizing compile

2 min read 25-09-2024 73
When inlining a C function, can an optimizing compiler dereference a pointer more times than explicitly written in the source code?
When inlining a C function, can an optimizing compiler dereference a pointer more times than explicitly written in the source code?

llvm/IR/Attributes.inc: No such file or directory when write toy compiler using LLVM

Resolving llvm IR Attributes inc No such file or directory Error While Writing a Toy Compiler Using LLVM If you re diving into the world of compiler constructio

3 min read 22-09-2024 84
llvm/IR/Attributes.inc: No such file or directory when write toy compiler using LLVM
llvm/IR/Attributes.inc: No such file or directory when write toy compiler using LLVM

tail call optimization with arguments on stack and callee with more arguments than caller

Understanding Tail Call Optimization with Stack Arguments Tail call optimization TCO is an advanced programming technique that can significantly improve the eff

2 min read 22-09-2024 64
tail call optimization with arguments on stack and callee with more arguments than caller
tail call optimization with arguments on stack and callee with more arguments than caller

Issue Linking, Building and Sharing Libraries in C++ robot.github.io

Understanding Linking Building and Sharing Libraries in C When working on software projects especially those that require a large amount of code or share functi

3 min read 22-09-2024 65
Issue Linking, Building and Sharing Libraries in C++ robot.github.io
Issue Linking, Building and Sharing Libraries in C++ robot.github.io

How to resolve the mistmatched input 'token' expecting 'LEXER_RULE'

How to Resolve the Mismatched Input token Expecting LEXER RULE When working with parsers one common issue developers encounter is the mismatched input token exp

2 min read 21-09-2024 60
How to resolve the mistmatched input 'token' expecting 'LEXER_RULE'
How to resolve the mistmatched input 'token' expecting 'LEXER_RULE'

How are structural tokens like (), {}, and ; tracked if they are not included in the symbol table?

Understanding the Tracking of Structural Tokens in Programming Languages In programming languages structural tokens such as parentheses braces and semicolons pl

2 min read 17-09-2024 50
How are structural tokens like (), {}, and ; tracked if they are not included in the symbol table?
How are structural tokens like (), {}, and ; tracked if they are not included in the symbol table?

By default compiler generates assembly code or object code

Understanding Compiler Behavior Assembly Code vs Object Code Compilers play a crucial role in programming by translating high level code into a form that a comp

3 min read 16-09-2024 45
By default compiler generates assembly code or object code
By default compiler generates assembly code or object code

Learning to write a compiler

Building Your Own Compiler A Journey into the Heart of Programming Ever wondered how the code you write transforms into the instructions your computer understan

2 min read 07-09-2024 73
Learning to write a compiler
Learning to write a compiler

Is it possible to install a C# compiler without Visual Studio?

Compiling C Code Without Visual Studio A Guide Many developers prefer the flexibility of building projects directly from the command line However the question o

2 min read 07-09-2024 71
Is it possible to install a C# compiler without Visual Studio?
Is it possible to install a C# compiler without Visual Studio?

initial value of int array in C

Understanding the Initial Values of an Integer Array in C When you declare an integer array in C like this c int array 10 You re creating an array capable of ho

less than a minute read 07-09-2024 55
initial value of int array in C
initial value of int array in C

gcc: undefined reference to _mcount (gprof instrumentation)

undefined reference to mcount Error Gprof Instrumentation on Solaris 10 SPARC This error undefined reference to mcount commonly appears when attempting to use g

2 min read 07-09-2024 57
gcc: undefined reference to _mcount (gprof instrumentation)
gcc: undefined reference to _mcount (gprof instrumentation)

Two interfaces with same method signature implemented in Java class

Javas Flexibility with Multiple Interfaces and Method Overriding A Deep Dive Imagine you have a car with a stereo system that can play both cassette tapes and D

2 min read 07-09-2024 65
Two interfaces with same method signature implemented in Java class
Two interfaces with same method signature implemented in Java class

How to make lex/flex recognize tokens not separated by whitespace?

Recognizing Concatenated Tokens in Lex Flex The question here is how to handle concatenated tokens in a lexer specifically using Lex Flex without relying on whi

2 min read 06-09-2024 59
How to make lex/flex recognize tokens not separated by whitespace?
How to make lex/flex recognize tokens not separated by whitespace?

How to enable the highest warning level in GCC compiler(Boost is heavily used)

Enabling the Highest Warning Level in GCC with Boost You re on the right track Enabling the highest warning level in your GCC compiler can be invaluable for cat

2 min read 06-09-2024 81
How to enable the highest warning level in GCC compiler(Boost is heavily used)
How to enable the highest warning level in GCC compiler(Boost is heavily used)

What hardware (CPU) in which the `rem` and `div` are two different assembly instructions?

Diving Deep into div and rem Understanding Hardware Differences When optimizing code especially in compilers like LLVM understanding how hardware executes basic

2 min read 04-09-2024 53
What hardware (CPU) in which the `rem` and `div` are two different assembly instructions?
What hardware (CPU) in which the `rem` and `div` are two different assembly instructions?

Can't launch VS Code from command prompt

VS Code Not Launching From Command Prompt Troubleshooting and Solutions If you re trying to launch VS Code from your command prompt using the code command and e

3 min read 31-08-2024 63
Can't launch VS Code from command prompt
Can't launch VS Code from command prompt

Invalid initializer error with anonymous structs

Invalid Initializer Error with Anonymous Structs A Deep Dive This article explores a common error encountered in C programming specifically the invalid initiali

2 min read 31-08-2024 43
Invalid initializer error with anonymous structs
Invalid initializer error with anonymous structs

LLVM invalid cast opcode for cast from 'i64' to 'i64'

LLVM Invalid Cast Opcode A Deep Dive into the i64 to i64 Conversion Issue This article explores the LLVM invalid cast opcode for cast from i64 to i64 error and

3 min read 31-08-2024 58
LLVM invalid cast opcode for cast from 'i64' to 'i64'
LLVM invalid cast opcode for cast from 'i64' to 'i64'

Creating a programming language on the .NET framework

Building Your Own Programming Language on the NET Framework A Guide Have you ever wondered how programming languages are created What if you could design your o

3 min read 29-08-2024 60
Creating a programming language on the .NET framework
Creating a programming language on the .NET framework

LLVM DAG Pattern Instruction Selection Fails after introducing a new intrinsic

LLVM DAG Pattern Instruction Selection Fails after Introducing a New Intrinsic This article explores a common issue encountered when extending LLVM with custom

2 min read 29-08-2024 74
LLVM DAG Pattern Instruction Selection Fails after introducing a new intrinsic
LLVM DAG Pattern Instruction Selection Fails after introducing a new intrinsic

Question about AVX-2, x86-64 function calls and Compilers

Optimizing Memory Initialization with AVX 2 A Deep Dive into Compiler Choices and Performance This article explores the intricacies of optimizing memory initial

2 min read 28-08-2024 65
Question about AVX-2, x86-64 function calls and Compilers
Question about AVX-2, x86-64 function calls and Compilers