frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Review: 50 Years of Text Games, by Aaron Reed

https://www.thepsmiths.com/p/review-50-years-of-text-games-by
1•NewCzech•2m ago•0 comments

Multiple commencement speakers booed for AI comments during graduation speeches

https://www.nbcnews.com/video/multiple-commencement-speakers-booed-for-ai-comments-during-graduat...
1•wrxd•2m ago•0 comments

Harmony Infra Ventures Reflects the Leadership of Harmandeep Singh Kandhari

https://sites.google.com/view/harmandeep-singh-kandhari
1•KirtiKKapoor•4m ago•1 comments

Microsoft Edge prevents Copilot from reading Bitlocker backdoor news

https://bsky.app/profile/ssg.dev/post/3mm4ivpgbzs2a
2•sedatk•5m ago•0 comments

Screen record more – Applied Cartography

https://www.jmduke.com/posts/screen-record-more.html
1•rhazn•6m ago•0 comments

The just-say-no engineer was a ZIRP phenomenon

https://www.seangoedecke.com/the-just-say-no-engineer-was-a-zirp-phenomenon/
1•rhazn•6m ago•0 comments

Germany goes from labour shortages to hiring freezes

https://www.ft.com/content/2a6c1cb9-6c11-41c8-a8ea-a367b8799126
1•doener•6m ago•0 comments

From Kubernetes Dev Setup to Production: What Changes

https://georg-schwarz.com/blog/from-kubernetes-demo-to-production-platform/
1•rhazn•7m ago•0 comments

LKML: Linus Torvalds: Linux 7.1-rc4

https://lkml.org/lkml/2026/5/17/896
2•Tomte•10m ago•1 comments

Colombian singer Shakira acquitted of tax fraud in Spain

https://www.reuters.com/world/americas/colombian-singer-shakira-acquitted-tax-fraud-spain-2026-05...
1•fodmap•14m ago•1 comments

Humans are better at coding than AI

https://github.com/Mattbusel/pre_execution_validator
1•Shmungus•15m ago•1 comments

What Is a Risk in Compliance?

https://www.probo.com/blog/2026-05-13-what-is-a-risk-in-compliance
1•gearnode•17m ago•0 comments

I've been shipping 'multi-tenant' wrong for a decade

https://adriacidre.com/blog/multi-tenant-isolation-vs-awareness/
1•kumulo•18m ago•0 comments

Stripe seems friendly to "friendly fraud"

https://www.gingerlime.com/2026/stripe-seem-friendly-to-friendly-fraud/
1•gingerlime•18m ago•0 comments

Instant AI answers can trivialise human intelligence, warns Royal Observatory

https://www.bbc.com/news/articles/c2023l60370o
1•01-_-•20m ago•1 comments

Microsoft admits Windows 11's dedicated Copilot key breaks certain workflows

https://www.windowscentral.com/microsoft/windows-11/microsoft-admits-windows-11s-dedicated-copilo...
2•01-_-•21m ago•0 comments

Visualizing FX Options: From Yield Curves to 3D Volatility Surfaces

https://medium.com/@DolphinDB_Inc/from-yield-curves-to-3d-vol-surfaces-a-practical-guide-to-fx-op...
1•CrazyTomato•21m ago•0 comments

How TCP Works – Handshake, Sequence Numbers, Congestion Control

https://toolkit.whysonil.dev/how-it-works/tcp/
4•otterwilde2•21m ago•0 comments

A Python lattice simulation showing emergent topological solitons

https://zenodo.org/records/20262720
1•kisnorbert•25m ago•0 comments

The jobs apocalypse: a (very) short history

https://www.economist.com/finance-and-economics/2026/05/14/the-jobs-apocalypse-a-very-short-history
1•svara•27m ago•0 comments

Guide to POSETTE: An Event for Postgres 2026, free and virtual

https://techcommunity.microsoft.com/category/azuredatabases/blog/adforpostgresql
1•clairegiordano•28m ago•0 comments

50 Years of BART – Beginning with BART [video]

https://www.youtube.com/watch?v=9BGuEpNBGxI
1•Austin_Conlon•29m ago•0 comments

Ansede-static: offline SAST, 98.8% CVE recall, catches IDOR and auth bypass

https://github.com/mattybellx/Ansede
1•mattybellx•30m ago•0 comments

ISS – Geolocating Astronaut Photography (2024)

https://web.archive.org/web/20260406181144/https://eol.jsc.nasa.gov/BeyondThePhotography/Automate...
2•jcattle•31m ago•1 comments

SiliconBox Monitor

https://github.com/maecer/silimon
1•montaggolan•33m ago•1 comments

Nobody Pushed Back: Why Engineers Stay Silent Until It's Too Late

https://howtocenterdiv.com/beyond-the-div/nobody-pushed-back
3•imkyssa•33m ago•1 comments

Tinysub: Simple web player for subsonic compatible music servers

https://tangled.org/devins.page/tinysub
1•nerdypepper•33m ago•0 comments

Biff 2.0 Sneak Peak

https://biffweb.com/p/biff2/
1•TheWiggles•35m ago•0 comments

The 96% that doesn't depend on you: why GEO is fundamentally off-page

https://blog.estevecastells.com/ai/geo-96-percent-off-page/
2•thesyray•36m ago•0 comments

Earth's Radio Bubble: Every Signal We've Ever Sent into Space

https://www.thescientificdrop.com/2026/05/earths-radio-bubble-every-signal-weve.html
1•jonbaer•38m 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).