frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Gender Medicine Set Itself Up for Disaster

https://www.compactmag.com/article/how-gender-medicine-set-itself-up-for-disaster/
1•isolli•12s ago•0 comments

Show HN: Polter – Agent Driven UI (react library)

https://mydatavalue.github.io/polter/
1•lemonade311•2m ago•0 comments

The Building Block Economy – Mitchell Hashimoto

https://mitchellh.com/writing/building-block-economy
1•futurecat•2m ago•0 comments

Untaxed hidden wealth surpasses wealth of the poorest half of humanity

https://www.oxfam.org/en/press-releases/untaxed-wealth-hidden-offshore-richest-01-surpasses-entir...
2•robtherobber•3m ago•0 comments

We're Getting the Wrong Message from Mythos

https://danielmiessler.com/blog/wrong-message-from-mythos
1•tobr•16m ago•0 comments

Mesurer: Measure and Align Everything on Localhost

https://mesurer.ibelick.com
1•handfuloflight•16m ago•0 comments

Supply chain attack on CPU-Z and HWMonitor

https://twitter.com/vxunderground/status/2042483067655262461
1•aprilnya•18m ago•1 comments

US plans to automatically register young men for military draft

https://www.bbc.com/news/articles/cd6lx2lpl9xo
2•georgecmu•21m ago•0 comments

Show HN: Open-Source MCP Servers – Twitter, Bluesky, LinkedIn, Google Ads, HN

https://github.com/isteamhq/mcp-servers
3•spotlayn•25m ago•0 comments

Elastic Tabstops (2006)

https://nick-gravgaard.com/elastic-tabstops/
1•dhruv3006•25m ago•0 comments

Show HN: Emduke32 – duke nukem 3D native in your web browser

https://originalsouth.github.io/emduke32/
1•originalsouth•27m ago•0 comments

Show HN: Hindsight Simulator – Go back in time and get rich

https://chrispattle.com/hindsight-simulator
3•pattle•28m ago•0 comments

Startup Focido joins the Limb accelerator

https://focido.com/
1•vladimir_fc•29m ago•0 comments

Running Terraform against Azure locally, without a subscription

https://topaz.thecloudtheory.com/blog/terraform-local-azure-no-subscription/
2•kamilmrzyglod•31m ago•0 comments

Show HN: Nvim plugin to jump to concrete interface implementation for Python

https://github.com/sigfriedCub1990/nvim.py_gti
1•sigfriedcub1990•31m ago•0 comments

TOON: Token-Oriented Object Notation

https://toonformat.dev/
2•pramodbiligiri•32m ago•0 comments

Kintify AI tool to analyze cloud issues and suggest fixes

1•kintify•33m ago•0 comments

Show HN: Mantyx – Agents that solve real problems for you and your business

https://mantyx.io/
2•mantyx•38m ago•0 comments

Architecting the Autonomous Enterprise with Agentic Workflows

https://viitorcloud.com/blog/ai-integration-services-for-agentic-workflows/
2•Olivia_Watson•40m ago•0 comments

I shipped a transaction bug, so I built a linter

https://leonh.fr/posts/go-transaction-linter/
1•leonhfr•40m ago•0 comments

Surelock

https://notes.brooklynzelenka.com/Blog/Surelock
1•lukastyrychtr•42m ago•0 comments

LLM Wiki v2 – extends Karpathy's take on LLM wiki

https://gist.github.com/rohitg00/2067ab416f7bbe447c1977edaaa681e2
1•rohitghumare•42m ago•0 comments

For AI, energy is the final frontier

https://m4ttl4w.substack.com/p/energy-the-final-frontier
1•mattyboomboom•43m ago•0 comments

We pay you 2x back if you follow the plan and miss your goal – 30 free codes

https://nano.com/
1•DiegoGilH•44m ago•0 comments

From $11/Month to $0: How I Used AI to Reclaim My Evening

https://www.rockoder.com/blog/website-migration/
2•ZacnyLos•47m ago•0 comments

Show HN: Keeper – embedded secret store for Go (help me break it)

https://github.com/agberohq/keeper
2•babawere•47m ago•0 comments

AI camera scanning cars issue 500k unjustified fines/year in the Nederlands

https://nltimes.nl/2026/04/09/camera-scanning-cars-issue-500000-unjustified-parking-fines-per-yea...
2•giuliomagnifico•49m ago•0 comments

Pizza Tycoon

https://store.steampowered.com/app/598990/Pizza_Connection/
2•doener•49m ago•0 comments

Sharp – Textured Display

https://blog.global.sharp/2025/05/16/21336/
1•TEHERET•50m ago•0 comments

Our Job Is to Understand

https://federicopereiro.com/our-job/
1•fpereiro•55m ago•0 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

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