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).

Claude AI recovers an 11 yrs old BTC wallet holding 400k USD

https://www.tomshardware.com/tech-industry/cryptocurrency/bitcoin-trader-recovers-usd400-000-usin...
1•cednore•1m ago•0 comments

Al Jazeera documentary highlights USC's sale of dead bodies to US Navy, Israel

https://www.uscannenbergmedia.com/2026/05/11/al-jazeera-documentary-highlights-uscs-sale-of-dead-...
2•diogenescynic•1m ago•0 comments

Oklo: A 2B-year-old natural reactor

https://www.sciencehistory.org/stories/disappearing-pod/the-worlds-only-natural-nuclear-reactor/
1•oganesson•1m ago•0 comments

Improving token efficiency in GitHub Agentic Workflows

https://github.blog/ai-and-ml/github-copilot/improving-token-efficiency-in-github-agentic-workflows/
1•gmays•1m ago•0 comments

Show HN: 3D-Agent – AI that edits Blender scenes through the Python API

https://3d-agent.com/blender-ai/plugin
1•gsunshinel•3m ago•0 comments

Skar – turn a captured AI agent trace into a pytest regression test

https://github.com/kalisky/skar
1•kalisky•4m ago•0 comments

Picks, Shovels, and the Bill of Materials – Supply Chain Pain Points

https://atomsfrontier.substack.com/p/picks-shovels-and-the-bill-of-materials
1•jpatel3•5m ago•0 comments

Show HN: A whiteboard for your AI coding agent [video]

https://www.youtube.com/watch?v=bybJAl15jR8
1•kirby88•5m ago•0 comments

EasyDMARC Alternative: Why Teams Are Switching

https://dmarcguard.io/blog/easydmarc-alternative/
1•meysamazad•6m ago•0 comments

LLM Targeted Underperformance Disproportionately Impacts Vulnerable Users

https://arxiv.org/abs/2406.17737
1•yogthos•6m ago•0 comments

Psychosocial Impact of Covid-19 on Intensive Care Unit Personnel

https://www.mdpi.com/2227-9032/14/9/1154
1•PaulHoule•7m ago•0 comments

Self-report fraud and walk free, New York prosecutors tell Wall Street

https://www.ft.com/content/6344b5be-e48c-48b8-8fea-d86e6c4c4aec
2•petethomas•7m ago•0 comments

Metal Gear Solid Peace Walker

https://joelchrono.xyz/blog/metal-gear-solid-peace-walker/
1•meysamazad•8m ago•0 comments

So you want to deploy Falcon / FN-DSA for small post-quantum signatures

https://keymaterial.net/2026/05/13/so-you-want-to-deploy-fn-dsa/
1•fanf2•8m ago•0 comments

Wait, Am I a Vampire?

https://puppynet.work/wait-am-i-a-vampire/
1•meysamazad•9m ago•0 comments

Subquadratic Model Performance and Architecture Evaluation [pdf]

https://cdn.prod.website-files.com/656a6f5ca4824808211181c5/6a0358958a5427c686cc3567_SUBQ_FINAL_V...
1•droidjj•10m ago•0 comments

Benchmarking Subquadratic's latest model and SSA Kernel

https://www.appen.com/whitepapers/benchmarking-subquadratics-latest-model-ssa-kernel
1•Galichev•11m ago•0 comments

Slack having issues with Messaging, API

2•theahura•11m ago•0 comments

The Navigator Trackpad is here

https://newsletters.feedbinusercontent.com/00a/00a32a2924e04bb621272a9cfa4056f089ea400a.html
2•robenkleene•13m ago•0 comments

Dude where's my password? Claude reunites forgetful stoner with $400k Bitcoin

https://www.theregister.com/offbeat/2026/05/14/claude-reunites-stoner-with-bitcoin-after-losing-p...
1•NordStreamYacht•13m ago•0 comments

You're stuck on a digital island with 30 other people in a group chat

https://isle31.com/
2•vincentlenoach•13m ago•1 comments

The third major Linux kernel flaw in two weeks has been found – thanks to AI

https://www.zdnet.com/article/third-major-linux-kernel-flaw-in-two-weeks-found-by-ai/
1•CrankyBear•14m ago•0 comments

Passwords suck. Can passkeys replace them?

https://kerkour.com/passkeys
2•randomint64•15m ago•0 comments

Overdose deaths fall for 3rd straight year amid a changing drug supply

https://www.cbsnews.com/news/overdose-deaths-decline-2025-rate-cdc-data/
2•randycupertino•15m ago•0 comments

CNN: Emails 'hurt IQ more than pot' (2005)

https://www.cnn.com/2005/WORLD/europe/04/22/text.iq/
1•dannyphantom•15m ago•0 comments

Whimsical Strategies Break AI Agents

https://www.microsoft.com/en-us/research/articles/whimsical-strategies-break-ai-agents-generating...
1•delichon•16m ago•0 comments

Front end isn't dead, but your focus needs to change

https://formation.dev/blog/frontend-isnt-dead-but-your-focus-needs-to-change/
1•yangshun•16m ago•0 comments

Ask HN: Slack Outage?

1•zackify•17m ago•0 comments

Show HN: NoDiff, TSX for browser apps without React or a virtual DOM

https://github.com/hbbio/nodiff
1•hbbio•17m ago•0 comments

Why agentic AI systems fail in production without a semantic layer

https://www.prometheux.ai/resources/how-retailers-boost-revenue
1•kukimonstaleni•18m ago•0 comments