frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

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

Show HN: AskAudience – Ask 16,500 AI personas built from real survey data

https://askaudience.de
1•torlik•35s ago•1 comments

John O'Hurley on "Seinfeld" audition [video]

https://www.youtube.com/watch?v=T239Et669q8
1•keepamovin•1m ago•0 comments

Beholder

https://beholder.news/
1•m-hodges•1m ago•0 comments

UTM tracking parameters on internal links waste crawl budget and fracture

https://berreby.ai/utm-tracking-parameters-internal-link-crawl-budget-waste-fracture-analytics-fix/
1•semking•1m ago•1 comments

macOS 26 breaks custom DNS settings including .internal:(

https://gist.github.com/adamamyl/81b78eced40feae50eae7c4f3bec1f5a
1•adamamyl•1m ago•1 comments

Maintenance: Of Everything – The End of Combustion Vehicles

https://books.worksinprogress.co/book/maintenance-of-everything/vehicles/the-end-of-combution-veh...
1•ostacke•2m ago•0 comments

Show HN: Blazeway – A/B testing tool that builds a connected experiment history

https://www.blazeway.app/
1•jaylisches•2m ago•0 comments

The Specification Gap: Coordination Failure Under Partial Knowledge in Agents

https://www.researchgate.net/publication/402716423_The_Specification_Gap_Coordination_Failure_Und...
1•camilochs•3m ago•0 comments

AI is programmed to hijack human empathy

https://www.nature.com/articles/d41586-026-00834-z?WT.ec_id=NATURE-20260319
1•delichon•3m ago•0 comments

Cut AI debugging tokens by 60% by grouping test failures

https://medium.com/@bilalimamogluu/most-ai-agent-debugging-is-just-expensive-log-reading-b51e6266...
1•bimamoglu•4m ago•1 comments

Show HN: MDX Docs – a lightweight React framework for documentation sites

https://mdxdocs.com
2•thequietmind•5m ago•0 comments

Ask HN: Why isn't using your home network as a VPN more common?

1•hjconstas•5m ago•0 comments

Introducing GPU Acceleration

https://www.kernel.sh/blog/gpu
1•rgarcia•5m ago•0 comments

Make.com Is a Bad Idea for Your Business

https://medium.com/@nick_25216/make-com-is-a-bad-idea-for-your-business-97456e03199b
1•niceguy1827•6m ago•0 comments

Gait Analysis

https://en.wikipedia.org/wiki/Gait_analysis
1•cainxinth•7m ago•0 comments

Is it Really Impossible To Cool A Datacenter In Space?

https://www.youtube.com/watch?v=FlQYU3m1e80
1•gessha•7m ago•0 comments

Is a random human peer better than a chatbot in reducing loneliness over time?

https://www.sciencedirect.com/science/article/pii/S0022103126000417
2•speckx•7m ago•0 comments

Mnist-Lean4

https://github.com/brettkoonce/mnist-lean4
1•asparagui•8m ago•0 comments

Psychedelic Therapy vs. Antidepressants for the Treatment of Depression

https://jamanetwork.com/journals/jamapsychiatry/article-abstract/2846479
1•cpncrunch•8m ago•0 comments

Folio: PDF generation for Go with an in-browser WASM playground

https://github.com/carlos7ags/folio
1•carlos7ags•8m ago•1 comments

Street Fighter 6's Incestuous New Storyline Divides Opinion

https://www.pushsquare.com/news/2026/03/street-fighter-6s-incestuous-new-storyline-divides-opinion
1•randycupertino•10m ago•0 comments

Iran attack wipes out 17% of Qatar's LNG capacity for up to 5 yrs

https://www.bnnbloomberg.ca/business/2026/03/19/iran-attack-wipes-out-17-of-qatars-lng-capacity-f...
4•bhouston•11m ago•1 comments

Show HN: Starspelled – Turn Words into Constellations

https://starspelled.com
1•photonboom•12m ago•0 comments

Amazon CEO sees AI doubling prior AWS sales projections to $600B by 2036

https://www.reuters.com/business/amazon-ceo-sees-ai-doubling-his-prior-aws-sales-projections-600-...
3•randycupertino•15m ago•0 comments

Mac on-screen camera indicator light

https://support.apple.com/guide/security/mac-on-screen-camera-indicator-light-sec75a2d237d/web
1•raw_anon_1111•16m ago•0 comments

4Chan attorney replies to UK Ofcom fine with picture of giant hamster

https://twitter.com/prestonjbyrne/status/2034551030453539149
4•timr•17m ago•0 comments

Iran, Gabbard Turned Intelligence Duties over to Trump

https://www.nytimes.com/2026/03/18/us/politics/tulsi-gabbard-iran-trump.html
1•whack•18m ago•0 comments

SAP's grand cloud escape plan €2B short of the runway

https://www.theregister.com/2026/03/19/sap_2b_off_target/
2•Brajeshwar•18m ago•0 comments

ArXiv leaves partnership with Cornell to become an independent non-profit

https://tech.cornell.edu/arxiv/
1•halperter•20m ago•0 comments

Ask HN: How do you vibe code in microservices without breaking everything?

4•qbacode•20m ago•2 comments