frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

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

Show HN: Agreezy: Create and e-sign agreements in minutes, no account needed

https://agreezy.app
1•agreezy•28s ago•0 comments

Show HN: LearnFork – Branching AI chat for learning and researching

https://learnfork.com/home
1•ninjaplavi•36s ago•0 comments

Iceland's Chief 'Lava Cooler' Is Bracing for the Next Eruption

https://www.nytimes.com/2026/03/15/world/europe/iceland-lava-volcano-eruption-grindavik.html
1•mitchbob•1m ago•1 comments

Your Company Is a Harness

https://twitter.com/seandoher1y/status/2033260806318797232
1•seandoh•1m ago•0 comments

The 49MB Web Page

https://thatshubham.com/blog/news-audit
1•kermatt•2m ago•0 comments

I Built LiveAuth: POW and Lightning Network Authentication for AI Agents

1•sydney-liveauth•3m ago•0 comments

Do You Need an Agent?

1•g_br_l•3m ago•0 comments

Show HN: Opsmeter.io – AI cost attribution and budget control for LLM apps

1•opsmeter•4m ago•0 comments

Show HN: LLVM-Z80 - I wrote a complete LLVM backend with AI

https://github.com/llvm-z80/llvm-z80
1•zlfn•6m ago•0 comments

Imglink.cc – simple image hosting with folders and password-locked sharing

https://imglink.cc
1•happyghast•6m ago•0 comments

Franklin Awards Global Membership

https://franklinawards.substack.com/p/franklin-awards-global-membership
1•congruency•9m ago•0 comments

GLM-5-Turbo

https://docs.z.ai/guides/llm/glm-5-turbo
3•Topfi•11m ago•1 comments

Ukraine strike on Russian chip plant sparks revolt among pro-war bloggers

https://english.nv.ua/nation/ukraine-strike-on-kremniy-el-plant-sparks-rift-between-russian-propa...
2•gnabgib•11m ago•0 comments

How AI creates more developer jobs

https://stackoverflow.blog/2026/02/09/why-demand-for-code-is-infinite-how-ai-creates-more-develop...
1•karlmush•12m ago•1 comments

Islamvy – Islamic Super Lifestyle App

http://islamvy.com
1•myusufuysal•13m ago•1 comments

Caliber – AI setup tailored for your codebase

https://caliber-ai.up.railway.app/
1•keterslater•13m ago•1 comments

Cool tech you've never heard of: Wave Field Synthesis

https://82mhz.net/posts/2026/03/cool-tech-you-ve-never-heard-of-wave-field-synthesis/
1•nomemory•13m ago•0 comments

DirectStorage 1.4 release adds support for Zstandard

https://devblogs.microsoft.com/directx/directstorage-1-4-release-adds-support-for-zstandard/
1•ksec•13m ago•0 comments

Let your Coding Agent debug the browser session with Chrome DevTools MCP

https://developer.chrome.com/blog/chrome-devtools-mcp-debug-your-browser-session
2•xnx•15m ago•0 comments

Show HN: Deathwatch, a CLI to detect abandoned dependencies

https://github.com/davitotty/deathwatch
1•Davitotty1•16m ago•1 comments

Lotus Notes Tribunal, Exhibit 001B: Login Screen Animation (2011)

http://depressedpress.com/2011/03/07/lotus-notes-tribunal-exhibit-001-b-login-screen-animation/
1•themaxdavitt•17m ago•0 comments

Jürgen Habermas, German philosopher and sociologist, dies aged 96

https://www.theguardian.com/world/2026/mar/14/jurgen-habermas-german-philosopher-and-sociologist-...
2•naves•18m ago•1 comments

Warming and farming hasten bird losses across North America, study shows

https://news.mongabay.com/short-article/2026/02/warming-and-farming-hasten-bird-losses-across-nor...
1•PaulHoule•18m ago•0 comments

Jürgen Habermas Dies at 96; One of Postwar Germany's Most Influential Thinkers

https://www.nytimes.com/2026/03/14/books/jurgen-habermas-dead.html
2•naves•19m ago•1 comments

The POC Valley

https://deploy95.substack.com/p/introducing-the-poc-valley
1•dddddaviddddd•19m ago•0 comments

Can a "Living Drug" Cure Autoimmune Diseases?

https://www.newyorker.com/culture/annals-of-inquiry/can-a-living-drug-cure-autoimmune-diseases
1•mitchbob•20m ago•1 comments

Free LLM cost calculator – what your AI product costs across providers

https://ai-cost-audit.vercel.app
1•eka_aibuilder•20m ago•1 comments

Recommended workbook for those of you interested in Japanese

https://tuttlepublishing.com/language/writing-japanese-hiragana
1•programmexxx•20m ago•0 comments

The most brilliant move in corporate history?

https://asymco.com/2026/03/10/the-most-brilliant-move-in-corporate-history/
1•frizlab•21m ago•0 comments

I use the 'cupcake' prompt to catch when AI is guessing

https://www.tomsguide.com/ai/i-use-the-cupcake-prompt-to-catch-when-ai-is-guessing-heres-how-it-w...
2•colinprince•22m ago•0 comments