Hacker News with Generative AI: Assembly Language

AI Models for Decompiling Assembly Code (reveng.ai)
The challenge of converting low-level assembly code back into human-readable source code is a cornerstone problem in reverse engineering.
Assembly Optimization Tips by Mark Larson (2004) (masm32.com)
The most important thing to remember is to TIME your code. Trying different tricks might or might not speed up your code. So it is very important to time your code to see if you do get a speedup as you try each trick.
A 94x speed improvement demonstrated using handwritten assembly (twitter.com)
FFmpeg: A 94x speed improvement demonstrated using handwritten assembly (twitter.com)
Why those particular integer multiplies? (wordpress.com)
The x86 instruction set has a somewhat peculiar set of SIMD integer multiply operations, and Intel’s particular implementation of several of these operations in their headline core designs has certain idiosyncrasies that have been there for literally over 25 years at this point.
LibLISA – Instruction Discovery and Analysis on x86-64 (liblisa.nl)
libLISA is a tool that can fully automatically scan instruction space, discover instructions and synthesize their semantics.
A C++ Developer Learns Assembly (deadbeef.io)
An unknown error occurred.
tolower() small string performance (dotat.at)
When processing very small string fragments, what is the cross-over point between scalar code and AVX-512 with masked loads and stores?
A "hello world" program in machine code on DOS (uninformativ.de)
Implementing and Detecting Anti-Debugging with Fork() (netlify.app)
As I continue my journey into reverse engineering macOS and iOS applications, I’m currently focusing on ARM assembly. I’m also working on a follow-up to my previous post on reverse engineering. In this next post, I’ll be tackling the challenge of cracking a macOS app’s license, and since I’ll be dealing with a release build, assembly language will be essential.
Compiling to Assembly from Scratch (keleshev.com)
Have you been trying to learn how compilers and programming languages work?
A Friendly Introduction to Assembly for High-Level Programmers (shikaan.github.io)
Coming from JavaScript, Rust, C, or any other high-level language, looking at assembly snippets can be confusing or even scary.
Writing a Lisp compiler (Lisp to assembly) from scratch in JavaScript (2018) (eatonphil.com)
In this post we'll write a simple compiler in Javascript (on Node) without any third-party libraries. Our goal is to take an input program like (+ 1 (+ 2 3)) and produce an output assembly program that does these operations to produce 6 as the exit code. The resulting compiler can be found here.
SectorC: A C Compiler in 512 bytes (2023) (xorvoid.com)
SectorC (github) is a C compiler written in x86-16 assembly that fits within the 512 byte boot sector of an x86 machine. It supports a subset of C that is large enough to write real and interesting programs. It is quite likely the smallest C compiler ever written.
Assembly Instruction: Halt and Catch Fire (HCF) (wikipedia.org)
Converting ASCII strings to lower case at crazy speeds with AVX-512 (lemire.me)
A FORTH compiler tutorial in x86 asm (2009) (annexia.org)
Hello world in C inline assembly (2018) (jameshfisher.com)
KickC is a C-compiler for 6502-based platforms creating readable assembler code (gitlab.com)
An Introduction to ARM64 Assembly on Apple Silicon Macs (github.com/below)
Ask HN: Which books/resources to understand modern Assembler? (ycombinator.com)