frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

A Decade of MakeCode

https://makecode.com/blog/10th-anniversary
1•azhenley•2m ago•0 comments

Sandbagged: Hoping to steal Nvidia chips, thieves mistakenly grab 20tons of sand

https://sfstandard.com/2026/09/25/plusai-autonomous-trucking-trailers-stolen-fremont/
1•giuliomagnifico•3m ago•0 comments

This Month in Redox – August 2026

https://www.redox-os.org/news/this-month-260831/
1•joshcsimmons•4m ago•0 comments

12,000-year-old Göbeklitepe burials explain scattered bones

https://archaeologymag.com/2026/09/gobeklitepe-burials-hundreds-of-scattered-bones/
1•yusufaytas•5m ago•0 comments

Shirei: Cross-Platform Immediate Mode GUI Framework for Go

https://judi.systems/shirei/
1•thunderbong•11m ago•0 comments

One Month Without AI

https://blog.bustikiller.com/2026/09/25/one-month-without-ai.html
1•saibotk•13m ago•0 comments

Court rules Trump can blacklist Anthropic for refusing to enable Claude features

https://arstechnica.com/tech-policy/2026/09/court-rules-trump-can-blacklist-anthropic-for-refusin...
1•sbulaev•14m ago•0 comments

A Tutorial on the Cross-Entropy Method [pdf]

https://web.mit.edu/6.454/www/www_fall_2003/gew/CEtutorial.pdf
1•ronfriedhaber•19m ago•0 comments

How do I deal with my team members who are resisting change?

https://andiroberts.com/leadership-questions/team-members-resisting-change
1•fagnerbrack•20m ago•0 comments

Are US Cannabis Contracts Enforceable?

https://businessofcannabis.com/are-us-cannabis-contracts-enforceable-a-32m-court-ruling-just-said...
1•lifeisstillgood•21m ago•0 comments

The weaker he gets, the more dangerous he gets

https://www.theguardian.com/news/ng-interactive/2026/sep/25/trump-lashes-out-un-fed-supreme-court
1•classified•22m ago•0 comments

The Copilot+ PC brand is dead

https://www.windowscentral.com/microsoft/windows-11/the-copilot-pc-brand-is-dead-microsoft-and-pc...
2•bj-rn•26m ago•1 comments

First DVD player announced Sept 26, 1996

https://dfarq.homeip.net/first-dvd-player-announced-sept-26-1996/
1•giuliomagnifico•26m ago•0 comments

Drum Machines (LLMs) Have No Soul

https://calvinflegal.com/2026/09/26/drum-machines-have-no-soul.html
1•calflegal•29m ago•1 comments

How to keep enjoying programming in a world of LLMs

https://discourse.haskell.org/t/how-to-keep-enjoying-programming-in-a-world-of-llms/14705
31•signa11•39m ago•19 comments

Ask HN: Indie hackers on X (Twitter) feels like a mega bubble these days

1•sankalpdomore•44m ago•0 comments

The Emacs Cat: Running Emacs in MicroVM

https://olddeuteronomy.github.io/post/running-emacs-in-microvm/
1•hndhyc0bdt•48m ago•0 comments

According to 1950s futurists, women of the year 2000 would be giantesses (2012)

https://gizmodo.com/according-to-1950s-futurists-women-of-the-year-2000-wo-5878243
1•Eridanus2•48m ago•0 comments

Overpaying for AWS Managed Nat Gateways? Fck-Nat

https://fck-nat.dev/v1.4.0/
2•edweis•51m ago•0 comments

Show HN: Aerofi – a rofi-inspired, scriptable launcher for macOS (Rust, GPUI)

https://github.com/frostymur/aerofi
1•osaill•51m ago•0 comments

I am the only one who still uses sublime text daily?

2•serg2•51m ago•0 comments

Show HN: App2Api – Give your AI the API behind your app

https://app2api.com/
1•flkdnfsnsf•54m ago•0 comments

Writing a Theorem Prover from Scratch

https://astledsa.substack.com/p/writing-a-theorem-prover-from-scratch
2•astledsa•54m ago•0 comments

Flashcat – a local AI assistant for the Mac terminal that asks first

https://github.com/TomTomsen765/flashcat
1•TomTomsen•57m ago•0 comments

An Epyc trip to Venice: about AMD's 256-core monster chip

https://www.theregister.com/systems/2026/09/23/an-epyc-trip-to-venice-everything-we-do-and-dont-k...
1•pella•59m ago•0 comments

Srijan Orizon – South Kolkata's Upcoming Landmark Project

1•Liyaans•1h ago•0 comments

Fifteen years later, the Apple Cards origin story

https://lexontech.org/fifteen-years-later-the-apple-cards-origin-story
5•ksec•1h ago•0 comments

Nintendo Wins $4.5M Judgment Against R/SwitchPirates Mod 'Archbox'

https://torrentfreak.com/nintendo-wins-4-5-million-judgment-against-r-switchpirates-mod-archbox/
2•gslin•1h ago•1 comments

The flames at Turkmenistan's Door to Hell are beginning to fade

https://www.getaway.co.za/travel/travel-ideas/door-to-hell-turkmenistan-darvaza-gas-crater/
2•giuliomagnifico•1h ago•0 comments

AMD Takes the Lid Off of Next-Gen EPYC 9006 Venice as Zen 6 Comes to Servers

https://www.servethehome.com/amd-takes-the-lid-off-of-next-gen-epyc-9006-venice-as-zen-6-comes-to...
1•ksec•1h ago•2 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).