frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Studying Linux Schedulers, and Why Metrics Matter

https://pradyun.net/blog/metrics_matter.html
1•birdculture•1m ago•0 comments

DistillFeed: RSS reader with AI-ranked items and summaries

https://github.com/ibaaj/distillfeed
1•newolive•2m ago•0 comments

The Unsexy Infrastructure That Wins Drone Wars

https://www.foxandlion.pub/post/the-unsexy-infrastructure-that-wins-drone-wars
2•afdwfe•3m ago•0 comments

CO2 overload in blood suggests toxic atmosphere within 50 years

https://doi.org/10.1007/s11869-026-01918-5
3•veqq•5m ago•1 comments

How to piss off your Nix friends

https://fzakaria.com/2026/07/18/how-to-piss-off-your-nix-friends
1•ai_critic•8m ago•0 comments

How to Manage Multiple Resumes for Different Career Paths

https://www.roleframe.ai/blog/managing-multiple-resumes
1•larbisahli•9m ago•0 comments

A card game I built as a decision-making benchmark for AI agents

https://play.in2itgame.com/agent-docs
1•intuitionTom•9m ago•0 comments

Ask HN: What are your favorite blogs not about AI?

4•azhenley•17m ago•0 comments

Vox Pop – guess what percent of people agree with you

https://voxpop-delta.vercel.app/
1•henrychannel•28m ago•1 comments

A Scorecard for the AI Age

https://openai.com/index/a-scorecard-for-the-ai-age/
2•yruzin•31m ago•0 comments

RDMA in gVisor: A Deep Dive into GPU Networking

https://atoniolo76.github.io/writing/post/rdma-in-gvisor
3•atoniolo76•36m ago•0 comments

Texas Court Orders Adult Site Domain Locked for AV Violations

https://www.xbiz.com/news/299218/texas-court-orders-adult-site-domain-locked-for-av-violations
1•us0r•38m ago•1 comments

Does operational privacy guidance change code generated by Qwen?

https://github.com/broodingGoat/qwen-privacy-codegen-pilot
1•sushaantmujoo•44m ago•0 comments

Northwestern's Phantom Twist spins at 1,500 RPM to evade human vision

https://runtimewire.com/article/northwestern-phantom-twist-drone-1500-rpm-motion-blur
3•ryanmerket•44m ago•0 comments

Continuous Contact (2005)

http://k-punk.abstractdynamics.org/archives/004826.html
2•DiscourseFan•50m ago•0 comments

Compiled List of over $1000 in AI/GPU/LLM Credits (100% Free)

https://sairc.vercel.app/resources
2•imranmk•53m ago•0 comments

How Claude can do your shopping

https://andrewacomb.substack.com/p/buying-screws-with-http-402
1•acombandrew•54m ago•0 comments

Majorana: "Microsoft's topological qubit is real"

https://dotient.com/blog/microsoft-majorana-particle
1•localdeclan•56m ago•0 comments

TSMC is accelerating Arizona factory buildout to capitalize on AI 'megatrend'

https://www.cnbc.com/2026/07/20/tsmc-arizona-fab-capacity-ai-chip-demand.html
3•ekorbia•59m ago•0 comments

Asymptote

https://asymptote.ualberta.ca/
3•joebig•1h ago•0 comments

The entropy tax: Why true randomness costs so much

https://psyll.com/articles/technology/cybersecurity/the-entropy-tax-why-true-randomness-costs-so-...
2•iamnow1982•1h ago•0 comments

The biggest winners of the American economy fear they're sinking fast

https://www.washingtonpost.com/technology/2026/07/19/tech-has-never-been-richer-its-workers-have-...
4•sseagull•1h ago•1 comments

Cut the number of choices you make each day; Your brain will thank you

https://apnews.com/article/too-many-choices-making-decisions-8ae0bfaac1d51cc5fc7b2e59336ff0dd
3•1659447091•1h ago•0 comments

Kevin O'Leary's view on AI is interesting, 9 minute video [video]

https://www.youtube.com/watch?v=PHhLhL1GIac
1•theMezz•1h ago•1 comments

Impro is a handbook for running a cult

https://www.seangoedecke.com/impro/
2•zdw•1h ago•0 comments

A Brief History of Computing

https://jasoneckert.github.io/myblog/a-brief-history-of-computing/
2•jasoneckert•1h ago•1 comments

Who's responsible for bug reports on old software versions?

https://pointieststick.com/2026/07/19/whos-responsible-for-bug-reports-on-old-software-versions/
1•zdw•1h ago•0 comments

What Bad Bases Are Good For

https://mathenchant.wordpress.com/2026/07/19/what-bad-bases-are-good-for/
2•jamespropp•1h ago•0 comments

FileVault on versus Off on Apple Silicon Macs

https://derflounder.wordpress.com/2026/07/18/filevault-on-versus-off-on-apple-silicon-macs/
2•zdw•1h ago•0 comments

Show HN: Deploy AI agent in 5 lines of code

https://www.custodianlabs.io
2•sherryf123•1h ago•1 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).