frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Cod Wars

https://en.wikipedia.org/wiki/Cod_Wars
1•tosh•52s ago•0 comments

Show HN: Laser Graffiti

https://laser.consti.de
1•con•2m ago•0 comments

Berlin is being blackmailed by hackers, mayor says

https://www.bbc.co.uk/news/articles/cm2q7gv3l5qo
2•vinni2•4m ago•0 comments

Show HN: Stumpzlib – search book catalogs and drop files into Stump

https://github.com/tuckerwales/stumpzlib
2•tuckerwales•5m ago•0 comments

Skopo – a Chrome new tab limited to three priorities

https://chromewebstore.google.com/detail/skopo/nfhmabcoalbnedaimhcikokeimimejbd
1•tazumi•5m ago•0 comments

Softwares that are not tools

https://harssh.substack.com/p/softwares-that-are-not-tools
2•harhargange•8m ago•0 comments

Mycoria

https://mycoria.org/
1•Velocifyer•11m ago•0 comments

Ask HN: Best way to archive 25 years of emails

1•astatine•11m ago•0 comments

VertiPaq: The in-memory, columnar query engine powering Microsoft analytics

https://www.ssp.sh/brain/vertipaq/
2•zazuke•12m ago•0 comments

Cross-model peer review for coding agents

https://github.com/makedirectory/ModelPeer
1•cromka•15m ago•0 comments

Influencer Solitaire

https://store.steampowered.com/app/4609800/Influencer_Solitaire/
1•doener•15m ago•0 comments

When Fruit Is Scarce, These Monkeys Hunt Animals

https://www.smithsonianmag.com/smart-news/when-fruit-is-scarce-these-monkeys-hunt-animals-the-beh...
1•cisc•15m ago•0 comments

AI Hallucination Cases Database

https://www.damiencharlotin.com/hallucinations/
2•Tomte•22m ago•0 comments

Uber Solved DB Overload: From Static Rate-Limiting to Intelligent Load Mgmt

https://www.uber.com/in/en/blog/from-static-rate-limiting-to-intelligent-load-management/
1•porridgeraisin•23m ago•0 comments

A local bridge for bidirectional collaboration between Claude Code and Codex

https://github.com/raysonmeng/agent-bridge
1•cromka•24m ago•1 comments

I compile one document layout into both PDF pages and editable PowerPoint slides

1•demchaav•25m ago•0 comments

Twitter Viewer Service Discontinued

https://twitterwebviewer.com/en
1•throw0101a•26m ago•3 comments

Black Rock City Census

https://blackrockcitycensus.org/
1•bushwart•27m ago•0 comments

AniTroves Is Back Live

2•anitroves•31m ago•0 comments

My Net Worth Calculator

https://www.mynetworthcalculator.com/?demo=1
1•lankinen•31m ago•1 comments

I organize my Emacs configuration

https://en.andros.dev/blog/dc7db35a/how-i-organize-my-emacs-configuration/
1•andros•33m ago•0 comments

How to spot a psychopath: 'the difference between a domestic cat and a wild cat'

https://www.theguardian.com/science/2026/aug/27/how-to-spot-a-psychopath-its-like-the-difference-...
2•rendx•34m ago•0 comments

RL'd Qwen-3.5-35B to paint hibiscus

https://twitter.com/human_named_gui/status/2093381283371941945
1•gdss•37m ago•0 comments

Building Autonomous Goal Loops That Deliver

https://jx0.ca/building-autonomous-goal-loops-that-deliver/
1•jarredkenny•40m ago•0 comments

Show HN: Pictiur: Image converter, optimizer and resizer, all in one

https://pictiur.pages.dev/
2•Etheon•41m ago•0 comments

Claude Code can be tricked simply by asking it to summarize a website

https://www.theregister.com/research/2026/08/28/researcher-shows-how-claude-code-can-be-tricked-s...
3•chrisjj•44m ago•3 comments

Show HN: Toolchestrator – make local, AI-built tools usable by your team

https://toolchestrator.com/
2•kstedev•45m ago•0 comments

The Cursed Computer Iceberg

https://suricrasia.online/iceberg/
1•fanf2•48m ago•0 comments

Iceland votes on whether to restart talks on joining EU

https://www.bbc.com/news/articles/cn45vdxyvvlo
63•tosh•50m ago•68 comments

Running a Software Factory Efficiently at Uber Scale

https://www.uber.com/de/en/blog/efficient-software-factory/
2•gfortaine•54m ago•0 comments
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).