frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•11mo 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•11mo 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•11mo 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).

Deflate, gzip, zlib, libz, et al.

https://curiouscoding.nl/posts/gzip/
1•tosh•4m ago•0 comments

Ask HN: AI in production feels "off" even when everything looks fine? OK 4 anon

1•stratoatlas•4m ago•1 comments

Is fake grass a bad idea? The AstroTurf wars are far from over

https://www.technologyreview.com/2026/04/09/1135092/astroturf-fake-grass-artificial-heated-debates/
1•joozio•10m ago•0 comments

BreachForums administrator identified as well-known ethical hacker

https://www.escudodigital.com/en/cybersecurity/breachforums-administrator-identified-as-well-know...
1•anonhaven•11m ago•0 comments

AI and remote work is a disaster for junior software engineers

https://medium.com/@lukas_kosinski/ai-and-remote-work-is-a-disaster-for-junior-software-engineers...
1•gpi•20m ago•0 comments

Can a non – coder build a high tech product?

2•savvyR•23m ago•0 comments

Would a user orchestration rollout tool for Gemini be useful for managers?

1•yajur•25m ago•0 comments

Show HN: 7 years of code, nothing to show on GitHub – so I built this

2•pallavjha26•26m ago•2 comments

Static search trees: 40x faster than binary search · CuriousCoding

https://curiouscoding.nl/posts/static-search-tree/
1•tosh•27m ago•0 comments

Show HN: EasyDash for Google Analytics [Android][Wip]

https://easydash-analytics.com/reddit/
1•kotysoft•29m ago•1 comments

BrikPanel 2.0 – Free WooCommerce Admin Dashboard (Metorik Alternative)

https://wordpress.org/plugins/brikpanel-admin-panel-dashboard-for-woocommerce/
1•niyht•32m ago•0 comments

HFS+ Cannot Properly Handle 24TB Volumes on macOS

https://medium.com/@kivancgunalp/hfs-cannot-properly-handle-24tb-volumes-on-macos-a-cautionary-ta...
3•p_ing•33m ago•0 comments

Kepler's Laws of Planetary Motion

https://en.wikipedia.org/wiki/Kepler%27s_laws_of_planetary_motion
1•tosh•36m ago•0 comments

Fossils reveal many complex animals existed before the Cambrian Explosion

https://www.sciencenews.org/article/fossils-complex-early-animals-diversity
1•nobody9999•36m ago•0 comments

Hong Kong Disneyland Speedrun Guide

https://geohot.github.io//blog/jekyll/update/2026/04/09/hk-disneyland.html
2•Tomte•37m ago•0 comments

Fast Image AI White Background

https://fastimage.ai/white-background
1•lucas0953•40m ago•0 comments

Claude Use Cases

https://claude.com/resources/use-cases
1•vinhnx•43m ago•0 comments

The Bra-and-Girdle Maker That Fashioned the Impossible for NASA

https://thereader.mitpress.mit.edu/the-bra-and-girdle-maker-that-fashioned-the-impossible-for-nasa/
2•sohkamyung•43m ago•1 comments

A Day in the Life of an Enshittificator [video]

https://www.youtube.com/watch?v=T4Upf_B9RLQ
2•delduca•44m ago•0 comments

Study shows Alzhheimer's disease tau protein spreads through connected neurons

https://www.uab.edu/news/research-innovation/new-research-shows-that-tau-protein-spreads-through-...
4•netfortius•44m ago•0 comments

System Design Interviews for Software Developers with Examples

https://nemorize.com/roadmaps/system-design-interviews-for-software-developers-with-exampl
2•reverseblade2•47m ago•0 comments

Show HN: GlotShot – Generate App Store screenshots in 12 languages

https://apps.apple.com/app/glotshot/...
1•witnote•47m ago•1 comments

I replaced a $1K/month radar API with a self-hosted $7/mo EC2

https://github.com/tjamjam/noaa-radar-pipeline
4•terrencef413•47m ago•0 comments

Show HN: Obsidian AI Copilot – Bring Claude Code, OpenCode, etc. into Obsidian

https://github.com/spencermarx/obsidian-ai
1•mrxdev•48m ago•0 comments

Lenny's Memory: Building Context Graphs for AI Agents

https://neo4j.com/blog/developer/meet-lennys-memory-building-context-graphs-for-ai-agents/
2•eigenBasis•50m ago•0 comments

The first computer in East Africa had to wait for a bakery before it could boot

https://jkitsao.substack.com/p/east-africas-first-computers
1•kitsao•50m ago•0 comments

Primesieve: Fast Prime Number Generator

https://github.com/kimwalisch/primesieve
2•djoldman•52m ago•0 comments

Gravitational-Wave Induced Freeze-In of Fermionic Dark Matter

https://journals.aps.org/prl/abstract/10.1103/lr69-45v8
1•bookofjoe•53m ago•0 comments

Ask HN: Is anyone winning with Server-Driven UI (SDUI) in 2026?

1•divyanshub024•53m ago•0 comments

Population discontinuity in Paris Basin linked to evidence of Neolithic decline

https://www.nature.com/articles/s41559-026-03027-z
1•bryanrasmussen•55m ago•0 comments