frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Apparently, "I'm Autistic" Requires Evidence

https://mostlysteady.substack.com/p/apparently-im-autistic-requires-evidence
1•fycth•1m ago•0 comments

Try Some Different Diets

https://mapwriting.substack.com/p/try-some-different-diets
1•doitLP•2m ago•0 comments

Hugo the fastest framework for building websites

https://gohugo.io/
1•Bluestein•5m ago•0 comments

'Fingerprints' inside the Sun could reveal if it once swallowed a planet

https://ras.ac.uk/news-and-press/research-highlights/fingerprints-inside-sun-could-reveal-if-it-o...
2•blincoln•10m ago•0 comments

The Talker Does Not Control the Doer (In Current AIs)

https://www.lesswrong.com/posts/cJX2ssssGoYqnijwi/the-talker-does-not-control-the-doer-in-current...
1•jstanley•12m ago•1 comments

First Naval Drone Duel Results in Ukrainian Success

https://www.navalnews.com/naval-news/2026/09/worlds-first-naval-drone-duel-results-in-ukrainian-s...
2•1970-01-01•14m ago•0 comments

The economic folly of free buses

https://www.economist.com/finance-and-economics/2026/09/10/the-economic-folly-of-free-buses
2•bookofjoe•15m ago•1 comments

Codename MDASH brings agentic AI security scanning to US Government

https://www.microsoft.com/en-us/microsoft-cloud/blog/us-government/2026/09/08/codename-mdash-brin...
2•fourfire•16m ago•0 comments

Premium plugins/template (theme) WordPress and PHP script premium

https://cheapmarketprices.com/index.php/product/any-plugins-templatetheme-wordpress-premium-licen...
1•ilaysyou•17m ago•0 comments

The expectations of privacy in driverless cars

https://shkspr.mobi/blog/2026/09/the-expectations-of-privacy-in-driverless-cars/
2•ColinWright•17m ago•0 comments

Show HN: Oauthcli – CLI for checking/testing/verifying OAuth 2.1 servers

https://github.com/Southclaws/oauthcli
1•Southclaws•19m ago•0 comments

An Open Letter from Academics about AI Risk / Life Without the Internet

https://dailynous.com/2026/09/12/an-open-letter-from-academics-about-ai-risk-life-without-the-int...
1•jruohonen•20m ago•0 comments

Show HN: Analyst Index – analysts who make money telling you good stock calls

https://www.analystidx.com/
2•haichuan•22m ago•2 comments

Making a livestream of Abbey Road into an oil painting

https://worthyrae.com/art/livestream-art
2•worthyrae•22m ago•1 comments

40ms Go GC stop-the-world pauses caused by swap

https://frn.sh/go-gc/
1•birdculture•22m ago•0 comments

Show HN: dCode – P2P collaborative code editor with no server

https://genosdb.com/dcode-p2p-collaborative-code-editor-no-server
1•jesusmanueldv•23m ago•0 comments

Kayaba Heliplane – The Japanese Gyroplane Prototype Left Behind

https://vintageaviationnews.com/warbird-articles/grounded-dreams/kayaba-heliplane.html
1•simonebrunozzi•24m ago•0 comments

Ask HN: Career paths to consider if I am better at supporting than creating?

11•_override•25m ago•5 comments

CTIA: Americans used more wireless data in 2025 than in the 4G decade

https://techblog.comsoc.org/2026/09/10/ctia-americans-used-more-wireless-data-in-2025-than-in-the...
1•jruohonen•32m ago•1 comments

Lageos-1, the heavy disco-ball satellite designed to do nothing

https://hackaday.com/2026/09/12/the-heavy-disco-ball-satellite-designed-to-do-nothing/
3•plaguna•33m ago•1 comments

The reason you can't afford anything is fake money

https://www.washingtonexaminer.com/op-eds/4717884/currency-debasement-gold-standard-affordability...
1•bilsbie•34m ago•0 comments

Security through obscurity is dead, and AI delivered the fatal blow

https://www.theregister.com/security/2026/09/13/security-through-obscurity-is-dead-and-ai-deliver...
2•jruohonen•34m ago•2 comments

Reflections on Machine Translation – Douglas R. Hofstadter (2018) [video]

https://www.youtube.com/watch?v=2xnr-ST6ITo
1•the-mitr•35m ago•0 comments

Show HN: Tarfio – monetize MCP tools with credits and usage-based pricing

https://tarfio.com/
1•eugenehizyyo•35m ago•0 comments

Diego Bohórquez and Mijail D. Serruya: how information moves levels in bodies [video]

https://www.youtube.com/watch?v=YvUn3G2lPxs
1•binyu•36m ago•0 comments

Coyote density is 9 times higher in Seattle than in Washington's wild lands

https://www.washington.edu/news/2026/09/10/coyote-density-is-9-times-higher-in-seattle-than-in-wa...
1•geox•37m ago•0 comments

Why Beyond the Waters of Traditional RAG

https://chandula7.gumroad.com/l/Advanced_RAG_LangGraph_Patterns
4•Senura•38m ago•0 comments

Caroline Ellison takes finance ops role at EA charity Manifund

https://forum.effectivealtruism.org/posts/pMpEKwY2ATJK5yrvG/caroline-ellison-has-joined-manifund
2•zero_shift•42m ago•3 comments

Diary of a CEO Responded to My Takedown. I Wasn't Ready for This

https://www.youtube.com/watch?v=Dqh17U3tymU
1•rasengan0•45m ago•0 comments

U.S. in Highest-Risk Category for Civil War, Coup, or Collapse in CIA Model

https://cmarmitage.substack.com/p/scored-on-the-cias-instability-model
20•JumpCrisscross•46m ago•6 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).