frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•10mo ago
I'd like to do some statistics over the machine code gcc generates, such as a histogram of used instructions, average volatile/preserved registers usage of functions etc. For now just x86_64 SysV-ABI would be enough.

However I'm not aware of any pre-existing tool that lets me easily do this. The options I currently see are either make gcc output assembly and write a parser for the GNU Assembler format (possibly by reusing the asm-parser of the compiler-explorer project), or write a tool that reads (disassembles) object files directly using elfutils.

Any hints, prior work, further ideas, links to useful resources, or any other kind of help would be much appreciated.

Comments

baobun•10mo ago
"Static analysis" should be a relevant search term. Assuming you don't need to tie the instructions back to C code then the "gcc" part seems circumstancial for implementation? I guess you might want to parse the ASM into an Abstract Syntax Tree (AST) represenation and work on that?

If you do want to tie it back to the source, this looks relevant: http://icps.u-strasbg.fr/~pop/gcc-ast.html

phafu•10mo ago
For my purpose I don't need to get back to the original source, no.

The gcc part is only relevant with regards to what dialect of assembler I need to parse. If I go that route, I'd write a parser for the GNU assembler, and that would of course work with any code in that dialect, regardless from which compiler it came from (I haven't checked whether other compilers can produce GNU assembler though).

The Missing Equation of Quantum Biology

https://sectio-aurea-q.github.io/emc2-of-quantum-biology.html
1•sectio-aurea-q•50s ago•0 comments

Show HN: Veil – A Minimal Neovim GUI for macOS with Metal Rendering

https://github.com/rainux/Veil
1•rainux•2m ago•0 comments

AI tool that scores your job's displacement risk by role and skills

https://careerrisk.ee/
1•Equitis•2m ago•1 comments

Selling to AI Agents

https://mattgiustwilliamson.substack.com/p/selling-to-ai-agents
1•MattSWilliamson•3m ago•1 comments

Introduction to 4D Gaussian Splats [video]

https://www.youtube.com/watch?v=X8yRlA7jqEQ
1•Khaine•4m ago•0 comments

Google's Larry Page Won the Bidding War for DeepMind

https://www.wsj.com/tech/ai/deepmind-google-demis-hassabis-5bd6de54
2•yihongs•6m ago•0 comments

Ask HN: Who needs contributors? (March 2026)

3•Kathan2651•6m ago•0 comments

Show HN: TermCanvas – An infinite canvas for your terminals

https://github.com/blueberrycongee/termcanvas
1•blueberrycongee•8m ago•0 comments

Hamilton-Jacobi-Bellman Equation: Reinforcement Learning and Diffusion Models

https://dani2442.github.io/posts/continuous-rl/
4•sebzuddas•9m ago•0 comments

Fast Image AI Image Enhancer

https://fastimage.ai/ai-image-enhancer
1•lucas0953•10m ago•0 comments

Twitching Before You Sprint

https://mikefisher.substack.com/p/twitching-before-you-sprint
1•kiyanwang•15m ago•0 comments

Compromised telnyx on PyPI

https://safedep.io/malicious-telnyx-pypi-compromise/
1•jruohonen•21m ago•1 comments

Getting a 404 when accessing the ZeroClaw repository

https://github.com/zeroclaw-labs/zeroclaw
1•imanhashemi•21m ago•0 comments

PixelSmile: Toward Fine-Grained Facial Expression Editing

https://arxiv.org/abs/2603.25728
1•ipotapov•21m ago•0 comments

Show HN: The Alphabetical Clock

https://boat.horse/clock/
2•secretdark•24m ago•2 comments

Hiring for "Twitter taste" is a thing now

2•husaiin•26m ago•0 comments

I use excalidraw to manage my diagrams for my blog

https://blog.lysk.tech/excalidraw-frame-export/
4•mlysk•26m ago•0 comments

AI Website Redesign Benchmark

https://medium.com/@kemyd/ai-website-redesign-benchmark-can-ai-actually-replace-designers-409551d...
1•avoc777•27m ago•0 comments

Artemis 2 astronauts arrive in Florida ahead of Wednesday moon launch attempt

https://spaceflightnow.com/2026/03/27/live-coverage-artemis-2-astronauts-head-to-florida-ahead-of...
2•DavidSJ•29m ago•0 comments

Good CTE, Bad CTE

https://boringsql.com/posts/good-cte-bad-cte/
1•radimm•32m ago•0 comments

Micro Bi-Copter UAV with Bias-Cog Stability [video]

https://www.youtube.com/watch?v=_YGwIYQKovQ
1•sponno•34m ago•0 comments

Push API

https://developer.mozilla.org/en-US/docs/Web/API/Push_API
1•h4ch1•34m ago•1 comments

Show HN: The most advanced GUI Homebrew got updated

https://taphouse.multimodalsolutions.gr/
1•juhapekka69•34m ago•0 comments

A Trip to the Movies Turned into a System Design Session

https://medium.com/@lightsoul/how-a-trip-to-the-movies-turned-into-a-system-design-session-542915...
1•birdculture•36m ago•0 comments

I am definitely missing the pre-AI writing era

https://www.lesswrong.com/posts/BJ4pnropWdnzzgeJc/i-am-definitely-missing-the-pre-ai-writing-era
9•joozio•40m ago•2 comments

Diseconomies of scale in fraud, spam, support, and moderation

https://danluu.com/diseconomies-scale/
2•jruohonen•41m ago•1 comments

Build the Smallest ESP32 Brushless Rocket Drone – ESP-Blast

https://www.instructables.com/Build-the-Smallest-ESP32-Brushless-Rocket-Drone-ES/
1•rbanffy•43m ago•0 comments

Show HN: Self-contained Kafka demo for developers coming from RabbitMQ

https://github.com/mkumm/kafka-sensor-city
1•mkumm•44m ago•0 comments

NASA Grand Tour program

https://en.wikipedia.org/wiki/Grand_Tour_program
1•teleforce•47m ago•0 comments

ClawdHome – a native macOS control plane for isolated OpenClaw gateways

https://github.com/ThinkInAIXYZ/clawdhome
1•astaxie•47m ago•2 comments