frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: An Unexpected Computer – Universal computing: echo, ed, test and exec [pdf]

https://seriot.ch/resources/unexpected_computer_pagedout_009.pdf
1•beefburger•2m ago•0 comments

Golang proposal: container/: generic collection types

https://github.com/golang/go/issues/80590
1•jabits•3m ago•0 comments

The First Open-Source Firmware Released for Modern AMD Ryzen AM5 Platform

https://www.phoronix.com/news/OSS-Firmware-MSI-B850-P-WIFI
1•zir_blazer•3m ago•1 comments

Show HN: Usbatlas – simple CLI utility to see what USBIP devices are attached

https://github.com/comalice/usbatlas
1•all2•4m ago•0 comments

How to Stop the Enshittification of America

https://www.thebignewsletter.com/p/monopoly-round-up-how-to-stop-the
1•connor11528•4m ago•0 comments

Bursty arrivals speed up LLM inference

https://systems.seas.harvard.edu/blog/burstiness-is-all-you-need/
1•ak33ra•8m ago•1 comments

Show HN: A Back End You Can Call Directly from React – No API Required

https://linkedrecords.com/getting-started/
1•WolfOliver•9m ago•0 comments

Fall of Situational Awareness Is a Warning, So Is Nvidia's Vendor Financing

https://www.newcomer.co/p/the-abrupt-fall-of-situational-awareness
1•mapping365•10m ago•0 comments

Orca-Bench: How Ready Are Language Model Agents for Oncall?

https://arxiv.org/abs/2607.28545
1•yruzin•10m ago•0 comments

The problem with putting an AI image generator in Google Earth

https://www.theverge.com/ai-artificial-intelligence/973764/google-earth-ai-satellite-images
1•rndsignals•11m ago•0 comments

AI's Wildest Spenders Are Hitting the Accelerator

https://www.bloomberg.com/opinion/articles/2026-07-31/ai-s-massive-spenders-google-meta-and-oracl...
2•PKop•11m ago•1 comments

Netflix sued for $105M for losing HDs with unencrypted film masters

https://www.cbsnews.com/news/netflix-lawsuit-lost-nicolas-cage-movie/
2•ipython•12m ago•0 comments

Using the railway network as a flatbed scanner [video]

https://media.ccc.de/v/emf2026-74-1-using-the-railway-network-as-a-flatbed-scanner
1•Jimmc414•12m ago•0 comments

Uninsured but Undaunted, a Surgical Patient Searched the Globe for a Deal

https://kffhealthnews.org/health-care-costs/hernia-surgery-search-globe-for-deal-bill-of-the-mont...
1•Jimmc414•12m ago•0 comments

Drones offer alternative to balloons for weather research

https://www.theguardian.com/news/2026/jul/31/weatherwatch-drone-base-station-offers-alternative-w...
1•beardyw•13m ago•0 comments

Termixer (TUI DJ Mixer)

https://github.com/l00sed/termixer
1•l00sed•15m ago•0 comments

Over 20k precolonial earthworks in the Southwest Amazonia

https://www.nature.com/articles/s41586-026-10835-7
1•paulpauper•17m ago•0 comments

Is the Industrial Revolution a precedent for explosive economic growth today?

https://mattsclancy.github.io/2026/07/27/industrial-revolution-growth.html
1•paulpauper•18m ago•1 comments

Increasing Value from Compute

https://bobgelfond.substack.com/p/increasing-value-from-compute
1•paulpauper•18m ago•0 comments

Ineffective by Design

https://dsa-observatory.eu/2026/07/30/ineffective-by-design-bits-of-freedom-vs-meta-at-the-forefr...
2•jruohonen•22m ago•0 comments

Low carbohydrate high fat diet curbs glioblastoma by shifting lipids

https://www.nature.com/articles/s42003-026-10516-1
2•bookofjoe•22m ago•0 comments

Show HN: Schema-backed, Git-based structured state for agentic systems

1•advancingu•23m ago•1 comments

Templates for Engineering Managers

https://newsletter.pragmaticengineer.com/p/templates-as-inspiration-for-engineering
1•abrbhat•24m ago•1 comments

The market's big AI doubts are exposing the riskiest players

https://www.cnn.com/2026/07/31/business/situational-awareness-citadel-ai-trade
1•mapping365•25m ago•0 comments

Three Claude Skills I Think Every Org Should Have

https://arpitbhayani.me/blogs/three-skills/
1•arpitbbhayani•25m ago•1 comments

June in Servo: real world compat, media queries, SharedWorker, and more

https://servo.org/blog/2026/07/31/june-in-servo/
1•iamnothere•25m ago•0 comments

Iranian hackers likely behind Minnesota municipal water cyberattack

https://www.axios.com/local/twin-cities/2026/07/30/report-iranian-hackers-minnesota-water-systems...
2•porridgeraisin•26m ago•0 comments

48K/50K ppl who crossed illegally into Ceuta have been returned to Morocco

https://www.euronews.com/my-europe/2026/07/31/around-25000-migrants-returned-to-morocco-after-mas...
4•Markoff•28m ago•0 comments

New Update Margin

https://www.trymargin.org
1•JosephPDiener•28m ago•0 comments

Goodhart's Law Comes for Every Benchmark You Trust

https://cacm.acm.org/blogcacm/goodharts-law-comes-for-every-benchmark-you-trust/
1•pseudolus•28m 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).