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

We chose a pipeline over speech-to-speech for evaluative voice AI

https://productfit.substack.com/p/why-speech-to-speech-apis-fail-when
1•niraj_kothawade•6s ago•0 comments

Show HN: BlazeMQ – 52KB Kafka-compatible broker in C++20, zero dependencies

https://github.com/awneesh123/Blaze-mq
1•awneeshtiwari•28s ago•0 comments

LLMs Refuse High-Cost Attacks but Stay Vulnerable to Cheap, Real-World Harm

https://expectedharm.github.io/
1•blackcat201•57s ago•0 comments

AI Doesn't Reduce Work–It Intensifies It

https://simonwillison.net/2026/Feb/9/ai-intensifies-work/
1•walterbell•1m ago•0 comments

Show HN: Decision Guardian – Surface past architectural decisions on GitHub PRs

https://decision-guardian.decispher.com/
1•iamalizaidi•4m ago•0 comments

Show HN: Open-source civic toolkit – 48 policies, 12 interactive tools, forkable

1•david_mchale•11m ago•0 comments

Can You Fly That Thing?

https://tomtunguz.com/can-you-fly-that-thing/
1•walterbell•12m ago•0 comments

Making a working intercom system from some old phone [video]

https://www.youtube.com/watch?v=mkJmT9kiu30
2•Refreeze5224•13m ago•0 comments

Trump says new US-Canada bridge won't open without Canadian concessions

https://www.freep.com/story/news/politics/2026/02/09/trump-says-gordie-howe-bridge-wont-open-with...
5•SilverElfin•13m ago•1 comments

Show HN: Multi-attribute decision frameworks for tech purchases

1•boundedreason•18m ago•0 comments

KiraStudio 1.0.0 – a lightweight, cross-platform music studio

https://kirastudio.org
2•ksymph•26m ago•0 comments

Can my SPARC server host a website?

https://rup12.net/posts/can-my-sparc-server-host-my-website/
3•pabs3•26m ago•0 comments

Report on the subject of Manufacturers (1791) [pdf]

https://constitution.org/2-Authors/ah/rpt_manufactures.pdf
4•pilingual•27m ago•0 comments

Explaining the PeV neutrino fluxes with quasiextremal primordial black holes

https://journals.aps.org/prl/accepted/10.1103/r793-p7ct
1•dataflow•27m ago•0 comments

Internet Background Noise

https://en.wikipedia.org/wiki/Internet_background_noise
1•tripdout•27m ago•0 comments

Show HN: Secure managed hosting for OpenClaw (free and BYOK)

https://openclaw-setup.me/
1•Gregoryy•31m ago•0 comments

Ask HN: How do you interpret P99 latency without being misled?

1•danelrfoster•34m ago•0 comments

Trapped Between Pitch, Disclaimer, and Confession

https://gilpignol.substack.com/p/trapped-between-pitch-disclaimer
1•light_triad•34m ago•0 comments

The Vocabulary Priming Confound in LLM Evaluation [pdf]

https://github.com/Palmerschallon/Dharma_Code/blob/main/paper/vocab_priming_confound.pdf
1•palmerschallon•37m ago•0 comments

The committee problem: why B2B demos die after the form

https://blog.skipup.ai/buying-committee-demo-scheduling-problem/
1•bushido•38m ago•0 comments

Show HN: Seedance2.live – One place to try many AI image and video models

https://seedance2.live
1•yuni_aigc•43m ago•1 comments

Show HN: Grok Video 10s – Grok AI video generation and creator contest

https://grok-video.org/
2•thenextechtrade•43m ago•0 comments

Grumpy Julio plays with CLI coding agents

https://jmmv.dev/2026/02/one-week-with-claude-code.html
1•todsacerdoti•43m ago•0 comments

The Software Business

https://ivanbercovich.com/2026/the-software-business
2•jimmythecook•47m ago•0 comments

Monopoly Round-Up: The $2T Collapse of Terrible Software Companies

https://www.thebignewsletter.com/p/monopoly-round-up-the-2-trillion
2•walterbell•48m ago•0 comments

Show HN: HelixNotes – Local-first Markdown notes app built with Rust and Tauri

https://helixnotes.com
4•ArkHost•51m ago•0 comments

Security audit of Browser Use: prompt injection, credential exfil, domain bypass

https://arxiv.org/abs/2505.13076
2•tiny-automates•51m ago•1 comments

Infinite Terrain

https://mesq.me/infinite-terrain/
1•memalign•52m ago•1 comments

"What Questions Do You Have for Me?": Acing the Reverse Interview

https://robbygrodin.substack.com/p/what-questions-do-you-have-for-me
1•code_pig•52m ago•0 comments

Show HN: SplitFXM – Multi-Dimensional Computational Library for Physics-Aware AI

https://splitfxm.com
1•gpavanb•56m ago•0 comments