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

StackRadar is now open source – Kubernetes SBoM vulnerability tracking

https://github.com/lockdep/stackradar
1•mariusjor•2m ago•0 comments

Notes on structured concurrency, or: Go statement considered harmful

https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/
1•theanonymousone•3m ago•1 comments

Analytic non-axisymmetric 3D MHD equilibria without stellarator symmetry

https://arxiv.org/abs/2610.07304
1•simonpure•6m ago•0 comments

Academics have a duty to defend open knowledge systems like Wikipedia

https://blogs.lse.ac.uk/impactofsocialsciences/2026/10/19/academics-have-a-duty-to-defend-open-kn...
2•jruohonen•6m ago•0 comments

EU lawmakers reach deal to weaken car CO2 targets

https://www.reuters.com/business/eu-lawmakers-reach-deal-weaken-car-co2-targets-2026-10-20/
2•aleda145•8m ago•0 comments

The Hugging Face Incident

https://huggingface.wtf/
3•eatitraw•9m ago•1 comments

Okiri Gabriel on the XERJ Corpus Hub

https://hub.xerj.org/contributors/OkiriGabriel
1•Gabrielokiri•10m ago•0 comments

AWS launches open-source Physical AI Toolchain for robotics

https://www.therobotreport.com/aws-launches-open-source-physical-ai-toolchain-for-robotics/
1•gmays•11m ago•0 comments

Show HN: Harness Studio: an open-source desktop coding agent for any model

https://github.com/vigneshv1cky/harness-studio
1•VigneshMurugan•11m ago•0 comments

Office 365 and Linux – trying to use Linux when your organization is all in

https://peterfalkingham.com/2026/03/04/office-365-and-linux-trying-to-use-linux-when-your-organiz...
1•jruohonen•11m ago•0 comments

Trace Evidence Collector – Standard for cross trust boundary accountability

https://gluufederation.medium.com/evidence-collector-your-agents-references-will-be-checked-b81f0...
1•idm_guru•12m ago•0 comments

Wizards of the Coast declines to voluntarily recognize D&D union drive

https://www.gamesindustry.biz/wizards-of-the-coast-declines-to-voluntarily-recognize-dd-and-studi...
1•paimapi•17m ago•0 comments

Show HN: What the Harness? LLM agent inconsistencies in MCP implementation

https://what-the-harness.polytomic.com
1•gms•17m ago•0 comments

Agentic AI has potential uses in prior-authorization protocols

https://civicpivot.blogspot.com/2026/09/healthcares-ai-arms-race-can-agentic-ai.html
1•civicpivot•18m ago•0 comments

Factor 0.102 Release

https://re.factorcode.org/2026/10/factor-0-102-now-available.html
2•otoburb•18m ago•0 comments

Think App store shared revenue but for AI models

https://dismodels.com/
1•agentsocializer•19m ago•0 comments

TypeScript 7.1 Beta

https://devblogs.microsoft.com/typescript/announcing-typescript-7-1-beta/
1•AbuAssar•22m ago•0 comments

From Use Case to GraphQL Operation: A Layered Approach for Agents

https://magiroux.com/posts/from-use-case-to-graphql-operation
1•xuorig_•22m ago•0 comments

Structural and mathematical audit of OpenAI's Navier-Stokes formalization

https://github.com/bp-purana52127/openai-navier-stokes-critique/blob/main/README.md
1•BPPurana•23m ago•0 comments

Germany news: Hackers release AfD party emails

https://www.dw.com/en/germany-news-hackers-release-afd-party-emails/live-79709090
4•mikhael•23m ago•0 comments

Nvidia's big bet on physical AI aims for safer robotaxis, humanoid robots

https://arstechnica.com/ai/2026/10/nvidias-big-bet-on-physical-ai-aims-for-safer-robotaxis-humano...
1•gmays•23m ago•0 comments

Kepler IPTV Player

https://keplerplayer.com/
1•kaporalix•24m ago•0 comments

No One Needs Us Anymore [video]

https://www.youtube.com/watch?v=zONGVaONKe8
3•bobajeff•26m ago•1 comments

How to install an app on your Commodore 64

https://www.anildash.com/2026/10/08/install-an-app-commodore-64/
1•Tomte•28m ago•0 comments

ABSD – An Experimental Operating System

https://absd.dev/
1•glhaynes•28m ago•1 comments

SimCity, but with Permits

https://permit.petercai.com/
10•pcai•29m ago•0 comments

Report Fraud Collect $30K

https://apnews.com/article/trump-fraud-whistleblower-vance-cc7c155c06cbab74d423911c36f5ac78
3•dmoose•29m ago•2 comments

Show HN: Rocus: Browser local LLM that organizes your websites, notes and files

https://rocus.io/
4•01hman•30m ago•0 comments

Making the internet better for AI agents might make it worse for everyone else

https://www.technologyreview.com/2026/10/19/1147186/making-the-internet-better-for-ai-agents-migh...
2•gnabgib•30m ago•0 comments

Project Discovery (Security Suite)

https://projectdiscovery.io
1•handfuloflight•31m ago•0 comments