frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

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

UNESCO World Radio Day 2026

https://www.unesco.org/en/days/world-radio
1•austinallegro•34s ago•0 comments

Apple Confirms Revamped Siri Is Still Coming in 2026

https://www.macrumors.com/2026/02/12/siri-ios-26-launch-confirmed-apple/
1•mgh2•4m ago•0 comments

February 11: more than 4B messages were sent to ChatGPT

https://twitter.com/ChatGPTapp/status/2022040577068716231
1•tosh•6m ago•0 comments

Prada Marfa

https://en.wikipedia.org/wiki/Prada_Marfa
1•jameslk•7m ago•0 comments

Copyright office will not find human authorship where AI program generates works

https://www.congress.gov/crs_external_products/LSB/PDF/LSB10922/LSB10922.8.pdf#page=3
1•internet_points•8m ago•0 comments

Show HN: Running OpenClaw on a managed Mac Mini 4 instance

https://www.scaleway.com/en/blog/scaleway-and-openclaw-with-mac-mini/
1•enthusaist•14m ago•0 comments

The End of Licenses

https://myblog.ru/the-end-of-licenses
1•xenator•16m ago•0 comments

Coursera prompt injection on copy and paste

https://twitter.com/iangcarroll/status/2022212829441667482
1•pjf•17m ago•0 comments

Anthropic to donate $20M to group backing AI regulation

https://www.reuters.com/legal/government/anthropic-donate-20-million-us-political-group-backing-a...
1•noduerme•18m ago•0 comments

A 10/10 portfolio page of a young designer

https://rishikeshsarangan.com/
2•alexsanjoseph•19m ago•1 comments

MiniMax releases M2.5: Performance on par with Claude Opus 4.6, but 20x cheaper

https://twitter.com/askOkara/status/2021988522329354264
3•alexfefun1•19m ago•0 comments

AI trends in 2026 will likely be about copilot tools, not automation agents

1•mikasisiki•21m ago•0 comments

How often does the average person fart? Scientists built a device to find out

https://www.scientificamerican.com/article/how-often-does-the-average-person-fart-scientists-buil...
1•beardyw•22m ago•0 comments

SMTP server from scratch in Go – FSM, raw TCP, and buffer-oriented I/O

2•Jyotishmoy•23m ago•0 comments

CEO of Digital Asset Company SafeMoon Sentenced to 100 Months in Prison

https://www.justice.gov/usao-edny/pr/ceo-digital-asset-company-safemoon-sentenced-100-months-pris...
1•pseudolus•27m ago•0 comments

Show HN: Enunciate – Paste a speech script, find the words you'll mispronounce

https://getenunciate.com
1•eventual_consis•27m ago•0 comments

Ask HN: Is there a no-LLM license yet?

4•ahub•27m ago•3 comments

AI uncovers solutions to Erdős problems, moving closer to transforming math

https://www.scientificamerican.com/article/ai-uncovers-solutions-to-erdos-problems-moving-closer-...
1•beardyw•27m ago•0 comments

Hear the "Amati King Cello", the Oldest Known Cello in Existence

https://www.openculture.com/2021/06/hear-the-amati-king-cello-the-oldest-known-cello-in-existence...
3•tesserato•32m ago•1 comments

Suno, AI Music, and the Bad Future

https://www.youtube.com/watch?v=U8dcFhF0Dlk
1•gobugat•33m ago•0 comments

Python for Prediction

https://pythonforprediction.wordpress.com/2026/01/28/llmtextualanswer-usage-examples/
1•librasteve•33m ago•0 comments

Show HN: Machine-readable CV portfolio (llms.txt, capabilities.json)

https://github.com/vassiliylakhonin/vassiliylakhonin.github.io
1•vassilbek•38m ago•0 comments

Analyzing Container Filesystem Isolation for Multi-Tenant Workloads

https://systemweakness.com/i-am-breaking-my-head-in-analyzing-container-filesystem-isolation-for-...
2•hevalon•38m ago•0 comments

Epstein Files: if you change the extension to .mp4 you can view the videos

https://old.reddit.com/r/Epstein/comments/1r1dkrf/comment/o4orail/
6•wise_blood•44m ago•1 comments

Charts show how Trump is isolating the US on the world stage

https://www.theguardian.com/world/ng-interactive/2026/feb/13/these-charts-show-how-trump-is-isola...
2•gizzlon•44m ago•1 comments

What Agentic AI "Vibe Coding" in the Hands of Actual Programmers / Engineers

https://www.stochasticlifestyle.com/what-agentic-ai-vibe-coding-in-the-hands-of-actual-programmer...
2•xeonmc•44m ago•0 comments

Forge: Scalable Agent RL Framework and Algorithm

https://www.minimax.io/news/forge-scalable-agent-rl-framework-and-algorithm
20•dougian•45m ago•0 comments

Dijkstra's algorithm won't be replaced in production routers any time soon

https://www.theregister.com/2026/02/10/dijkstras_algorithm_impact_on_networks/
1•pseudolus•45m ago•0 comments

600% memory price surge threatens telcos' broadband router

https://theoverspill.blog/2026/02/13/climate-change-acceleration-question-start-up-2609/
1•doener•48m ago•0 comments

Building Trust in Fusion Energy

https://cfs.energy/news-and-media/building-trust-in-fusion-energy/
1•mpweiher•48m ago•1 comments