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

Every MCP framework assumes a human at the end of the pipeline – we don't

https://vinkius-labs.github.io/mcp-fusion/mva/
1•renatomarinho•1m ago•0 comments

Show HN: AIVault – MCP server that lets AI use your API keys without seeing them

https://github.com/mohshomis/AIVault
1•mohshomis•3m ago•0 comments

Histomat of F/OSS: We should reclaim LLMs, not reject them

https://writings.hongminhee.org/2026/01/histomat-foss-llm/
1•whym•6m ago•0 comments

Zuckerberg's "Fix" for Child Safety Could End Anonymous Internet Access for All

https://reclaimthenet.org/zuckerberg-instagram-age-verification-trial
3•aestetix•7m ago•1 comments

I built an AI Watch that responds 5x faster than Siri at 16

https://gethollow.com/
1•Svanski•7m ago•1 comments

I am collecting lo-fi music to stay productive. Tell me if I'm missing any

https://linkits.xyz/kit/lo-fi
1•max_cm•8m ago•0 comments

Meeting is being recorded. Did you know?

https://www.ft.com/content/b24e423a-3d02-45e8-9720-971f60b9ab9d
2•fallinditch•11m ago•0 comments

Show HN: Open-sourced an AI agent directory with an automated discovery pipeline

https://github.com/mohamed-taha/aiagents-directory-oss
1•mot92•12m ago•0 comments

Dealing with a DERPy Server

https://yakshed.com/derp/
1•abound•12m ago•1 comments

Show HN: LinuxLofi-Lofi in the Terminal

https://github.com/JohnDSdev/linuxlofi
2•JohnDSDev•13m ago•0 comments

Show HN: Free AI tool that analyzes your Strava training data

https://www.rexcoach.com
1•jakeboyd4444•13m ago•0 comments

Warp_Seq Sequencer

https://warpseq.lovable.app/?p=eyJicG0iOjEyMCwic3RlcHMiOjE2LCJ0cmFja05hbWVzIjpbIktJQ0siLCJTTkFSRS...
1•nader•14m ago•1 comments

Show HN: The Manifold Chip – Bypassing the Landauer Wall in Analog Silicon

https://github.com/MPender08/manifold-chip-architecture
1•MPender08•15m ago•1 comments

Show HN: Agentloom – import skills, agents, commands, and MCP from repos

https://agentloom.sh
1•farnoodma•16m ago•0 comments

Stranded Overnight: Lufthansa Passengers Not Allowed to Deplane A320neo

https://simpleflying.com/stranded-overnight-lufthansa-passengers-deplane-a320neo-munich-airport/
2•gynecologist•16m ago•0 comments

Google restricting Google AI Pro/Ultra subscribers for using OpenClaw

https://discuss.ai.google.dev/t/account-restricted-without-warning-google-ai-ultra-oauth-via-open...
3•srigi•17m ago•0 comments

Show HN: Sayiir Powerful/durable Rust workflow engine – Python/Node.js bindings

https://github.com/sayiir/sayiir
1•ybsoft•17m ago•0 comments

How I'm Writing Web Apps with Nim in 2026

https://arhamjain.com/posts/nim-web-2026/
1•TheWiggles•20m ago•0 comments

Rise of the Adaptation Economy [pdf]

https://cdn.prod.website-files.com/68c2c290145789d44eaa01eb/6909bd32f7e85a0535884bd1_The%20Rise%2...
1•mooreds•23m ago•0 comments

Back end where you just define schema, access policy, and functions

1•emilss•23m ago•1 comments

The Great Zipper of Capitalism

https://worksonmymachine.ai/p/the-great-zipper-of-capitalism
1•mooreds•23m ago•0 comments

Ukraine Has Passed a Point of No Return

https://www.nytimes.com/2026/02/22/opinion/ukraine-russia-war-four-years.html
2•mooreds•25m ago•0 comments

Optimize_anything: A Universal API for Optimizing Any Text Parameter

https://gepa-ai.github.io/gepa/blog/2026/02/18/introducing-optimize-anything/
1•LakshyAAAgrawal•31m ago•1 comments

Show HN: I'm building a pure-Rust reimplementation of rsync (Protocol 32)

https://github.com/oferchen/rsync
1•oferchen•33m ago•0 comments

Tenaciously Palantir Courted Switzerland

https://www.republik.ch/2026/02/18/how-tenaciously-palantir-courted-switzerland
2•TigerUniversity•33m ago•1 comments

Ask HN: Is There Any .llmignore?

1•rishikeshs•34m ago•0 comments

Show HN: ImagineIf – Write stories together, AI generates visuals

https://imagineif.app
1•tugaypala•41m ago•1 comments

Analyzing ShowHN's Avalanche

https://geekymartian.blog/articles/digging-into-showhns-avalanche/
1•geekymartian•41m ago•1 comments

Ask HN: Submission not going live, not flagged

1•trinsic2•42m ago•10 comments

Show HN: Parallel Code – Running multiple AI agents in parallel with worktrees

1•johannesjo•42m ago•0 comments