frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

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).

Multi-tentacled orchestrator for Claude Code

https://github.com/nyldn/claude-octopus
1•theorchid•2m ago•0 comments

You have to earn your calculator

https://matthiasplappert.com/blog/2026/earn-your-calculator/
1•sherlock_h•3m ago•0 comments

Building a Personal Mnemonics Bot

https://rtjom.com/blog/2026/03/building-a-personal-mnemonics-bot/
1•tjomk•7m ago•0 comments

Community Security Scans: Crowd-Sourced Trust for AI Agent Skills

https://skillsgate.ai/blog/community-security-scans
1•sultanvaliyev•7m ago•0 comments

Universal Paperclips

https://www.decisionproblem.com/paperclips/index2.html
1•iamstan23•8m ago•1 comments

Japan's key tech workers are now cheaper than Malaysia's

https://asia.nikkei.com/business/technology/japan-s-key-tech-workers-are-now-cheaper-than-malaysia-s
1•KnuthIsGod•13m ago•0 comments

Engram – salience-gated memory for Claude Code (captures what matters)

https://github.com/dp-web4/engram
1•dp-web4•16m ago•1 comments

Ask HN: Tools for searching ArXiv by relevance and quality?

2•alastairr•18m ago•0 comments

Ask HN: What's your strategy for inconsistent date formats?

2•Gyanangshu•18m ago•1 comments

Show HN: Lumbox – Email infrastructure for AI agents (lumbox.co)

1•kumardeepanshu•20m ago•0 comments

Ask HN: Burning $100K/week on LLM tokens – what are you doing to cut costs?

12•seenkitty•21m ago•7 comments

Show HN: ShadowStrike – Windows EDR Post-Analysis

1•Soocile•21m ago•0 comments

How the Open-Source Community Is Bypassing OS Age Verification Laws

https://thecybersecguru.com/glossary/bypass-os-age-verification-laws/
15•lesterrue•26m ago•0 comments

Google Flood Forecasting API

https://developers.google.com/flood-forecasting
1•teleforce•30m ago•0 comments

Just create a free bio generator

https://www.aibiotools.com/
2•JohnYuan97•33m ago•1 comments

Built an AI course that teaches to make 3-5k monthly -Launching Today

https://bpyynqq0ziax.space.minimax.io/
4•AIMoneyMachine•35m ago•2 comments

PHP 8.4.19 Release Announcement

https://www.php.net/releases/8_4_19.php
2•ms7892•37m ago•0 comments

Animation 10k Starlink Satellites

https://spaceweather.com/archive.php?view=1&day=18&month=03&year=2026
2•MeteorMarc•38m ago•0 comments

Catastrophe and Corporate Bonds: A Unified Approach to Pricing Disaster Risks

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6165466
2•7777777phil•38m ago•0 comments

Show HN: Blocktools – a Rust-powered suite for the smart contract lifecycle

https://blocktools.dev
2•wazzaaaa•38m ago•0 comments

Show HN: QCCBot – Android in a browser tab, with AI agent control

4•Eastra•38m ago•0 comments

Show HN: ROMA runs multiple coding agents simultaneously – Claude, Codex, etc.

https://github.com/liliang-cn/roma
2•AISlop31415•40m ago•0 comments

Confer is bringing foundational AI privacy to Meta

https://confer.to/blog/2026/03/encrypted-meta/
2•jbegley•42m ago•0 comments

Echoo – Free, open-source macOS app for system-wide AI via shortcuts and voice

https://www.echoo.ai/
2•mike_elkabetz•43m ago•2 comments

Run any LLM on any hardware. Auto-detects your GPU, checks if the model fits

https://github.com/Julienbase/uniinfer
2•julien_base31•45m ago•0 comments

AI changed software cost structure not Value structure

https://testdouble.com/insights/quality-you-cant-generate-ai-is-only-as-good-as-your-constraints
2•kathir05•50m ago•0 comments

Arizona Charges Kalshi with Illegal Gambling Operation

https://www.bloomberg.com/news/articles/2026-03-17/arizona-charges-kalshi-with-operating-illegal-...
3•greg_w•58m ago•0 comments

Show HN: Open-source YouTube summary, transcript chat, and timeline sidepanel

https://github.com/EchoTide/QuickSummarize
2•oujiangping•1h ago•0 comments

British physics faces 'catastrophic' cuts

https://www.bbc.com/news/articles/czr0zmzzp84o
4•jb1991•1h ago•0 comments

Show HN: Vue-OTP-pro – Minimal OTP input for Vue 3

https://vue-otp-pro.netlify.app
2•pratik227•1h ago•0 comments