You are here |
www.bitsnbites.eu | ||
| | | |
coredumped.dev
|
|
| | | | In this post, we are going to take a deep dive into pointer tagging, where metadata is encoded into a word-sized pointer. Doing so allows us to keep a compact representation that can be passed around in machine registers. This is very common in implementing dynamic programming languages, but can really be used anywhere that additional runtime information is needed about a pointer. We will look at a handful of different ways these pointers can be encoded and see how the compiler can optimize them for diff... | |
| | | |
www.nayuki.io
|
|
| | | | ||
| | | |
ashvardanian.com
|
|
| | | | David Patterson had recently mentioned that (rephrasing): The programmers may benefit from using complex instruction sets directly, but it is increasingly challenging for compilers to automatically generate them in the right spots. In the last 3-4 years I gave a bunch of talks on the intricacies of SIMD programming, highlighting the divergence in hardware and software design in the past ten years. Chips are becoming bigger and more complicated to add more functionality, but the general-purpose compilers like GCC, LLVM, MSVC and ICC cannot keep up with the pace. Hardly any developer codes in Assembly today, hoping that the compiler will do the heavy lifting. | |
| | | |
www.playembedded.org
|
|
| | Pointers can be a daunting concept for those new to the C programming language, but they are a very powerful tool that can greatly improve the efficiency of your code. In this article, we will demystify pointers and explain how they work, why they |