frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

What insects can teach us about decision making

https://www.bbc.com/future/article/20260810-what-insects-can-teach-us-about-decision-making
1•Scrapemist•5m ago•0 comments

Pg_stat_ch: Automatic Postgres stat exports to ClickHouse

https://clickhouse.com/blog/pg_stat_ch-postgres-extension-stats-to-clickhouse
1•caffeinated_me•5m ago•0 comments

A Green Light for Crooks

https://www.theatlantic.com/ideas/2026/08/corrupt-administration-shell-company-business-transpare...
1•paulpauper•9m ago•0 comments

Will farm animals always suffer?

https://worksinprogress.co/issue/will-farm-animals-always-suffer/
1•paulpauper•10m ago•0 comments

Show HN: I serve my website with a swarm of ESP32 microcontrollers on a shelf

https://github.com/Novotarskyi/ivan-bohun
3•disco_jack•19m ago•1 comments

'We are not lonely': Solitude as a new aspirational lifestyle

https://www.bbc.com/news/articles/c5y63dw2x3wo
1•gmays•25m ago•0 comments

Energy, surplus, economic process (December 2026)

https://www.sciencedirect.com/science/article/pii/S0921800926002302
1•oliculipolicula•26m ago•0 comments

Brazil2026ElectionFilter

https://github.com/xai-org/x-algorithm/blob/main/home-mixer/filters/brazil_2026_election_filter.rs
1•dmarto•32m ago•0 comments

Calculus Made Easy by Silvanus P. Thompson (1910)

https://www.gutenberg.org/ebooks/33283
1•remywang•35m ago•0 comments

AI Driven Testing

https://app.deltix.ai
2•oneounceman•35m ago•0 comments

Cox–Zucker Machine

https://en.wikipedia.org/wiki/Cox%E2%80%93Zucker_machine
3•rolph•37m ago•0 comments

Delete DoorDash

https://deletedoordash.com/
1•megamike•39m ago•3 comments

We need your help to make a faster and more secure Monero node a reality

https://reddit.com/r/Monero/comments/1vo7htb/we_need_your_help_to_make_a_faster_and_more/
1•Cider9986•40m ago•0 comments

Time-of-Check to Time-of-Use

https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use
1•_josh_meyer_•50m ago•0 comments

Anthropic IPO valuation hinges on $190-200B 2028 revenue forecast

https://www.reuters.com/business/anthropic-ipo-valuation-hinges-190-200-billion-2028-revenue-fore...
3•PessimalDecimal•56m ago•0 comments

Show HN: BeCharts – online chart maker (templates, CSV, PNG/SVG/PDF)

https://www.becharts.com/editor
1•neo_tang•56m ago•0 comments

How did a Usenet troll and encryption genius become a criminal mastermind?

https://magazine.atavist.com/2016/he-always-had-a-dark-side
1•firefax•58m ago•0 comments

Show HN: WMTrace – See how LLM text watermarks work (Anthropic just adopted one)

https://github.com/gtesei/llm-watermark
1•isacco•1h ago•0 comments

Someone is publishing a trove of zero-days

https://0day-rubbish.com/
2•dclavijo•1h ago•0 comments

OpenAI ditches Recall-style screenshot surveillance for friendly keylogging

https://www.theregister.com/ai-and-ml/2026/08/14/openai-ditches-recall-style-screenshot-surveilla...
1•sbulaev•1h ago•0 comments

An Infamous Math Problem Closer to Being Solved by Encouraging AI

https://www.wsj.com/tech/ai/ai-math-riemann-hypothesis-anthropic-openai-22f98a87
1•RyanShook•1h ago•0 comments

What I Learned from Playing "Spelling Bee"

https://www.mooreds.com/wordpress/archives/3750
1•mooreds•1h ago•0 comments

Show HN: Nakso – Your Desktop Sketchpad

https://github.com/niklauslee/nakso
1•niklauslee•1h ago•0 comments

A coalescent model reveals deep ancestral structure shared by all modern humans

https://www.nature.com/articles/s41588-025-02117-1
1•lawrenceyan•1h ago•0 comments

Federal agents surveilled Minnesota unions in hunt for Antifa conspiracy case

https://www.startribune.com/federal-agents-led-by-jan-6-participant-surveilled-minnesota-unions-i...
3•hn_acker•1h ago•1 comments

Thank you to the people building these AI tools

1•bgilly•1h ago•0 comments

Yester World Asking for Help from Google De-Monitization and AI [video]

https://www.youtube.com/watch?v=z9QiBMdvgRE
3•InTheArena•1h ago•2 comments

AI productivity gains drive net CO₂ increase in global energy–economy model

https://www.nature.com/articles/s44168-026-00411-0
7•littlexsparkee•1h ago•0 comments

Spaceship Service Outage Update

https://www.spaceship.com/blog/spaceship-service-outage-update/
2•anonu•1h ago•0 comments

Haitians in Springfield are required to report to ICE and wear ankle monitors

https://ohiocapitaljournal.com/2026/08/14/haitians-in-springfield-are-required-to-report-to-ohios...
15•hn_acker•1h ago•8 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).