frontpage.
newsnewestaskshowjobs

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

KradleBench: Multi-agent AI evals in Minecraft

https://www.kradle.ai
1•jamest•49s ago•0 comments

Advancing chip design with OpenAI models

https://openai.com/index/advancing-chip-design-with-our-models/
1•vighneshiyer•1m ago•0 comments

Workers Are Not Going to Be OK

https://www.nytimes.com/2026/11/17/opinion/ai-bubble-workers.html
1•reasonableklout•1m ago•1 comments

String Art Font (2017)

https://erikdemaine.org/fonts/stringart/
1•akkartik•4m ago•0 comments

The tool Russia hasn't been able to replicate

https://novayagazeta.eu/en/articles/2026/11/18/the-tool-russia-hasnt-replicated-en
1•giuliomagnifico•4m ago•0 comments

Show HN: Goldcrest, a household financial model you fill in by talking

https://app.getgoldcrest.com
1•tralfamadorian8•4m ago•0 comments

What is the shape of a paid skill? – Skillfully

https://skillsthatsellsh.substack.com/p/what-is-the-shape-of-a-paid-skill
2•gerroo•4m ago•0 comments

LarpLess

https://larpless.app/
2•ggigelmo•5m ago•0 comments

Microsoft Outlook down? So was our homepage

https://bengalaviz.com/microsoft-outlook-down-so-was-our-homepage/
2•goldfingeroo7•5m ago•0 comments

Forking TuxGuitar into a 17-EDO tab editor

https://frogwizard.bearblog.dev/tuxguitar-17edo/
2•speckx•5m ago•0 comments

Lakegres: Vector search on existing Open/Hudi/Iceberg tables

https://www.onehouse.ai/blog/lakegres-vector-search-on-open-table-formats
4•cloud8bits•5m ago•1 comments

Confronting the Limits of Recursive Self-Improvement

https://www.techpolicy.press/confronting-the-limits-of-recursive-self-improvement/
2•JustinHendrix•5m ago•0 comments

GraalVM fixed the java4shell bug in September

https://github.com/oracle/graal/commit/13a4853144b802b8c5943754d179c67229f50fff
2•knuckleheads•6m ago•0 comments

Ask HN: What's your motivation to create a content website in the times of AI?

1•Gooblebrai•6m ago•0 comments

The Paramount-Warner Brothers Deal Could Usher in Another Age of Lost Media

https://www.eff.org/deeplinks/2026/11/paramount-warner-brothers-deal-could-usher-another-age-lost...
1•hn_acker•7m ago•0 comments

EFF's AI Cybersecurity Policy Framework

https://www.eff.org/deeplinks/2026/11/effs-ai-cybersecurity-policy-framework
2•hn_acker•8m ago•0 comments

Show HN: Spooky Particles, sends failed Vercel deploys to your coding agent

https://spookyparticles.com
2•n8peace•9m ago•0 comments

GTA6 is the highest rated game of all time on Metacritic

https://screenrant.com/gta-6-metacritic-score-highest-ever/
2•illidan1000•9m ago•0 comments

Alfred 6 Is Here

https://www.alfredapp.com/blog/announcements/alfred-6-is-here/
2•jiehong•12m ago•0 comments

Standard Kernel Used AI to Make Intel's Abandoned Gaudi2 Outperform Nvidia H100

https://standardkernel.com/blog/intel-gaudi2-outperforms-h100/
3•anneouyang•12m ago•0 comments

Lumi, from learning RAG to an open-source, self-hosted chatbot for agencies

https://github.com/nieve-consulting/lumi
1•arroyo•13m ago•0 comments

Fed Program to Convert Decommissioned Offshore Structures into Artificial Reefs

https://www.boem.gov/newsroom/press-releases/mma-announces-federal-program-potentially-convert-de...
1•geox•14m ago•0 comments

URI Design and Ownership

https://www.rfc-editor.org/info/rfc8820/
1•mooreds•14m ago•0 comments

PayByPhone dark patterns let it make an extra –$54,630,342/yr from their users [video]

https://www.youtube.com/watch?v=i8mrwS5QZQE
1•ahstilde•15m ago•0 comments

The Seven Anthropic Founders Who Are About to Become Multibillionaires

https://www.wsj.com/tech/ai/the-seven-anthropic-founders-who-are-about-to-become-multibillionaire...
1•pretext•15m ago•0 comments

Show HN: WebCraft Pro – CI-enforced engineering standards for AI coding agents

https://github.com/ViviBeri/webcraft-pro
1•viviberi•15m ago•0 comments

You're Learning LLMs in the Wrong Order

https://www.youtube.com/watch?v=kChLGU7ArTQ
2•walidhadri•16m ago•0 comments

GitHub Down?

2•datadrivenangel•19m ago•1 comments

OAuth Client ID Metadata Document

https://oauth.net/2/client-id-metadata-document/
1•mooreds•20m ago•0 comments

Diranersen Shows Increasing Clinical Benefit at 2 Years in Early Alzheimer's

https://investors.biogen.com/news-releases/news-release-details/biogens-diranersen-demonstrates-i...
1•computerdork•20m ago•0 comments