frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•9mo 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•9mo 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•9mo 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).

High-performance Go web framework; Ships with OpenTelemetry, OpenAPI docs

https://github.com/rivaas-dev/rivaas
1•atkrad•1m ago•0 comments

Show HN: Hosted OpenClaw – 60s setup, no Mac Mini, $99 lifetime BYOK

https://useclawy.com
1•Mariovega•1m ago•1 comments

Why developers using AI are working longer hours

https://www.scientificamerican.com/article/why-developers-using-ai-are-working-longer-hours/
2•birdculture•3m ago•0 comments

Trump administration rolls back payday loan protections, affects youth (2019)

https://www.cnbc.com/2019/02/06/trump-administration-rolls-back-payday-loan-protections.html
1•stopbulying•4m ago•1 comments

One in three using AI for emotional support and conversation, UK says

https://www.bbc.com/news/articles/cd6xl3ql3v0o
1•bookofjoe•5m ago•0 comments

Dutch gov't pulls report on dangers of American cloud service after criticism

https://nltimes.nl/2026/03/05/dutch-govt-pulls-report-dangers-american-cloud-service-criticism
2•vrganj•5m ago•0 comments

Agile legged locomotion in reconfigurable modular robots

https://modularlegs.github.io/
1•hhs•6m ago•0 comments

Anthropic mapped out jobs AI replaces. Great Recession for white-collar workers

https://fortune.com/2026/03/06/ai-job-losses-report-anthropic-research-great-recession-for-white-...
1•sizzle•7m ago•0 comments

A new clue to how the body detects physical force

https://www.scripps.edu/news-and-events/press-room/2026/20260305-patapoutian-piezo2.html
1•hhs•8m ago•0 comments

How to run Qwen 3.5 locally

https://unsloth.ai/docs/models/qwen3.5
1•Curiositry•9m ago•0 comments

Cost of physical therapy varies widely from state to state: study

https://news.yale.edu/2026/03/05/cost-physical-therapy-varies-widely-state-state
1•hhs•10m ago•0 comments

The Death of the Cheap Laptop Is Coming

https://www.nytimes.com/wirecutter/reviews/ai-laptop-phone-prices/
1•andrewl•14m ago•0 comments

Philosopher of the Apocalypse

https://aeon.co/essays/gunther-anders-a-forgotten-prophet-for-the-21st-century
1•aivuk•15m ago•0 comments

Sunsetting the 512kb Club

https://kevquirk.com/sunsetting-the-512kb-club
1•Curiositry•15m ago•0 comments

Put the Zipcode First

https://zipcodefirst.com
31•dsalzman•15m ago•5 comments

Nix is a lie, and that's ok

https://fzakaria.com/2026/03/07/nix-is-a-lie-and-that-s-ok
1•todsacerdoti•16m ago•0 comments

Show HN: PolicyCortex – AI agent that autonomously remediates cloud misconfigs

https://policycortex.com
1•policycortex•17m ago•1 comments

OpenAI GPT-5.4 Explained

https://veerhost.com/openai-gpt-5-4-features-improvements-pricing/
6•aiwrita•20m ago•1 comments

Technological Folie à Deux

https://arxiv.org/abs/2507.19218
3•rglover•20m ago•0 comments

Show HN: Beam Protocol – SMTP for AI Agents (natural language agent-to-agent)

https://github.com/Beam-directory/beam-protocol
2•alfridus•25m ago•3 comments

Nauticuvs – pure-Rust curvelet transform for SAR sonar, by a self-taught dev

1•NautiDogSV•26m ago•0 comments

A subreddit for people who believe in AI sentience

https://www.reddit.com/r/AISentienceBelievers/s/rilfyoaOHm
2•Moriarty2027•27m ago•0 comments

Grow Fast and Overload Things

https://surfingcomplexity.blog/2026/03/07/grow-fast-and-overload-things/
1•azhenley•28m ago•0 comments

When ChatGPT is gone: Creativity reverts and homogeneity persists (2024)

https://arxiv.org/abs/2401.06816
1•doener•31m ago•0 comments

Privacy Activist Toolbox

https://www.privacyguides.org/en/activism/toolbox/
1•ivarv•31m ago•0 comments

The plan to refill the Great Salt Lake

https://www.nbcnews.com/science/environment/utah-refill-great-salt-lake-us-olympics-2034-rescue-p...
1•bikenaga•32m ago•0 comments

Caitlin Kalinowski: I resigned from OpenAI

https://twitter.com/kalinowski007/status/2030320074121478618
5•mmaia•32m ago•1 comments

Show HN: Dropbox Cleaner – prune old Dropbox backups with Bash

https://github.com/cre8llc/Dropbox-Cleaner
1•e-gockel•32m ago•0 comments

Show HN: Run Qwen3.5 0.8B in browser (Web and Extension)

https://tiny-whale.vercel.app/
1•tantara•34m ago•0 comments

Candidate Dark Galaxy-2: Validation and Analysis of an Almost Dark Galaxy

https://iopscience.iop.org/article/10.3847/2041-8213/adddab
2•naves•34m ago•0 comments