frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•1y 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•1y 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•1y 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).

Human in the loop and the autonomous agent problem

https://openenvelope.org/writing/hitl-autonomous-agent-problem/
1•ashconway•1m ago•0 comments

Smartphone Sales Are Tumbling

https://www.msn.com/en-us/news/technology/ar-AA24cVZL
1•CarbonBasedUnit•3m ago•1 comments

South America Travel Costs in 2026: Which Cities Are Cheap Now

https://jackmaguire.org/blog/south-america-travel-costs-2026/
2•magicroot75•7m ago•1 comments

Google Security Engineer Arrested in Million-Dollar Polymarket Trading Scheme

https://www.wired.com/story/google-employee-accused-of-polymarket-one-million/
1•1vuio0pswjnm7•9m ago•0 comments

Google Employee Charged with Insider Trading

https://www.justice.gov/usao-sdny/pr/google-employee-charged-insider-trading
2•1vuio0pswjnm7•10m ago•0 comments

Show HN: SwiperTab – clean up your tabs in a fun way

https://addons.mozilla.org/en-US/firefox/addon/swipertab/
2•Realman78•10m ago•0 comments

AgingBench: AI Agents Age Too

https://agingbench.github.io
2•zfancy•11m ago•0 comments

Severe Latency Impacting All Slack Services

https://slack-status.com/2026-05/fd9a431182c72eeb
4•xyru•13m ago•1 comments

Trump admin drawing up plans to stop processing intl flights in sanctuary cities

https://www.theguardian.com/us-news/2026/may/27/dhs-international-flights-sanctuary-cities
4•standardUser•15m ago•0 comments

New method for testing AI using real work-flows

https://github.com/AssimilatedHuman/LLM-Inquisitor
1•ballista2026•16m ago•0 comments

Show HN: My Attempt at QR as a Captcha

https://qr.arcades.click
1•jwally•21m ago•0 comments

Ask HN: I am about to go from SWE to Product Manager, what is your day 1 advice?

1•mr_00ff00•25m ago•2 comments

A Luxury Survivalist Community Is Tearing Itself Apart

https://www.wsj.com/us-news/a-luxury-survivalist-community-is-tearing-itself-apart-53d2a99f
1•tortilla•25m ago•2 comments

Why is Slack allowed to get away with lying?

5•slack_is_lying•29m ago•1 comments

AGH is the First open-network protocol for AI Agents

https://www.agh.network/
1•pedronauck21•29m ago•1 comments

How can we get politicians to listen? Surely there's a tech solution: Voice News

https://voicenews.app
1•henrystaley•30m ago•3 comments

Rise and Fall of Hosting Provider Gandi.net

https://gagliardoni.net/#20260528_gandi_downfall
2•tomgag•31m ago•2 comments

Google Engineer Charged with Insider Trading on Polymarket

https://www.bloomberg.com/news/articles/2026-05-27/google-engineer-charged-with-insider-trading-o...
9•forthwall•33m ago•1 comments

Charter Communications confirms data breach of apparently 40M records

https://www.techradar.com/pro/security/charter-communications-confirms-data-breach-shinyhunters-b...
2•lschueller•34m ago•0 comments

Wikipedia: Wiki Workers United Solidarity

https://en.wikipedia.org/wiki/Wikipedia:Wiki_Workers_United_solidarity
3•choult•34m ago•0 comments

I built three Wikipedia-based search tools as alternatives to Google AI

https://www.calishat.com/2026/05/21/three-search-alternatives-to-googles-brave-new-ai-world/
1•Calishat•36m ago•1 comments

NASA's Psyche Mission Aces Mars Flyby, Targets Metal-Rich Asteroid

https://www.nasa.gov/missions/psyche-mission/nasas-psyche-mission-aces-mars-flyby-targets-metal-r...
1•bookofjoe•36m ago•0 comments

Interesting possible new Tinder scam at scale

https://www.youtube.com/watch?v=rjxAYdUe8uU
1•lifeisstillgood•37m ago•0 comments

What Emerges When You Don't Break Sustained Coherent Human-AI Interaction

https://zenodo.org/records/20332884
1•Depiphany_Reb•40m ago•0 comments

Taking Naval Options Away from China –| Peter Zeihan [video][4m53s]

https://www.youtube.com/watch?v=NRkZprxYOzQ
1•Bender•40m ago•0 comments

China is keeping its best AI talent to itself via travel restrictions

https://techcrunch.com/2026/05/27/china-is-increasingly-keeping-its-best-ai-talent-to-itself/
1•jnord•40m ago•0 comments

A Google employee allegedly used inside information to win $1.2M on Polymarket

https://www.theverge.com/tech/938635/google-polymarket-insider-trading-prediction-market-bets
4•1vuio0pswjnm7•40m ago•0 comments

Halide Mark III

https://www.lux.camera/halide-mark-iii/
2•witweb•42m ago•0 comments

Keyboard Latency Probe

https://xkqr.org/bellwether/keyboardtest.html
2•birdculture•44m ago•0 comments

Google engineer charged in $1.2M Polymarket case

https://www.axios.com/2026/05/27/google-worker-polymarket-bets-inside-information-charges
8•1vuio0pswjnm7•44m ago•0 comments