frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ukraine's $1k interceptor drones The Pentagon wants to buy

https://www.militarytimes.com/news/pentagon-congress/2026/03/11/these-are-ukraines-1000-intercept...
1•mizzao•5m ago•0 comments

Global Maritime Chokepoints

https://ryanshook.org/chokepoints/
1•RyanShook•8m ago•0 comments

VeryAI raises $10M to build palm-scan identity system on Solana

https://cointelegraph.com/news/polychain-backs-veryai-s-10m-raise-to-build-palm-scan-identity-sys...
1•adrianwaj•10m ago•0 comments

Vite 8.0 Is Out

https://vite.dev/blog/announcing-vite8
3•kothariji•13m ago•0 comments

Some Simple Economics of AGI

https://arxiv.org/abs/2602.20946
1•aray07•16m ago•0 comments

ScraperNode – Scraping API for LinkedIn, Instagram, TikTok, and More

https://scrapernode.com
1•emery_p•17m ago•0 comments

Hugging Face Storage Buckets Storage Bucket

https://huggingface.co/storage
1•tamnd•17m ago•0 comments

2011-2026 time lapse: rebuilding after Tōhoku earthquake and tsunami [video]

https://www.youtube.com/watch?v=ZE-JgL_UUkI
1•kazinator•19m ago•1 comments

Ask HN: Does anyone here use Discord as their work chat tool?

2•Poomba•25m ago•3 comments

AI-generated passwords aren't random, it just looks that way

https://www.theregister.com/2026/02/18/generating_passwords_with_llms/
1•pabs3•26m ago•1 comments

Show HN: ClawRemove – Inspect and clean AI agent environments

https://github.com/tianrking/ClawRemove
1•tianrking•27m ago•1 comments

A Multilingual, IRGC-affiliated Influence Operation on X, Instagram, and Bluesky

https://open.clemson.edu/cgi/viewcontent.cgi?article=1009&context=mfh_reports
1•longislandguido•28m ago•0 comments

Who Will Remember Us When the Servers Go Dark?

https://newdesigncongress.org/en/pub/who-will-remember-us-when-the-servers-go-dark/
2•pabs3•32m ago•0 comments

Native CLI scaffolds consistently outper-form OpenCode when using the same model

https://arxiv.org/abs/2603.08640
1•xdotli•33m ago•1 comments

Show HN: Droeftoeter, a Terminal Coding Toy

https://github.com/whtspc/droeftoeter
1•whtspc64•34m ago•0 comments

Show HN: Freelancer Profitability Calculator

https://soloboss.app/freelancer-profitability-calculator
1•SoloBossFounder•35m ago•0 comments

Faulty urine tests may have inflated alcohol levels in California criminal cases

https://www.sfchronicle.com/bayarea/article/urine-tests-alcohol-level-faulty-california-22073795.php
3•littlexsparkee•40m ago•0 comments

Important Updates to GitHub Copilot for Students

https://github.com/orgs/community/discussions/189268
1•angst•40m ago•1 comments

From Optician to $62k MRR in 3 Months: AI Code Editors Reshaping SaaS

2•jackcofounder•46m ago•0 comments

CLI-Anything

https://github.com/HKUDS/CLI-Anything
4•tardismechanic•49m ago•0 comments

We compare model quality in Cursor

https://cursor.com/blog/cursorbench
2•xdotli•52m ago•0 comments

An Overview of the Amoeba Distributed Operating System – Tanenbaum

https://dl.acm.org/doi/pdf/10.1145/1041500.1041502
1•ivanbelenky•54m ago•0 comments

T4a – Terminals for Agents

https://github.com/denoland/t4a
1•garrettjoecox•57m ago•0 comments

Fast non-Chromium browser for AI agents: LightPanda

https://lightpanda.io
1•daniel_iversen•58m ago•0 comments

Kobalt Tools

https://kbalt.com/
2•Throwthrowbob•59m ago•1 comments

Give Your AI Agent a Live Status Page

https://clawjetty.com/###
1•andes314•1h ago•2 comments

Enabling Media Router by default undermines Brave's privacy claims

2•noguff•1h ago•0 comments

Rackup, a Toolchain Manager for Racket

https://samth.github.io/rackup/
2•samth•1h ago•0 comments

Hyperlinks in Terminal Emulators

https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
4•nvahalik•1h ago•0 comments

Heart, Head, Life, Fate

https://www.lrb.co.uk/the-paper/v48/n05/steven-shapin/heart-head-life-fate
1•Petiver•1h ago•0 comments
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).