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

The Data Project – data journalism sites built from public government datasets

https://www.thedataproject.ai
1•kianoconnor•4m ago•0 comments

Altman says OpenAI agrees with Anthropic's red lines in Pentagon dispute

https://thehill.com/policy/technology/5758898-altman-backs-anthropic-pentagon-stand/
2•rectang•4m ago•0 comments

Federal agencies may have a Claude problem now

https://www.axios.com/2026/02/27/claude-anthropic-trump-government-agencies
2•toomuchtodo•5m ago•1 comments

Show HN: I built a site where you hire yourself instead of applying for jobs

https://hired.wtf
2•apwn•7m ago•1 comments

Show HN: Rapidly build efficient sites with Neat, the minimalist CSS framework

https://github.com/codazoda/neatcss
1•codazoda•11m ago•0 comments

Need ArXiv endorsement.. CS. Multiagent-Systems [pdf]

https://www.socialcompute.dev/deterministic_control_paper.pdf
1•dev_marcospimi•11m ago•0 comments

Show HN: XDP firewall that auto-syncs open ports – built after my VPS got DDoS'd

https://github.com/Kookiejarz/basic_xdp
1•kennethhh•11m ago•0 comments

Show HN: Taskdog – Terminal-based task manager with schedule optimization

https://github.com/Kohei-Wada/taskdog
1•kohei-wada•13m ago•0 comments

Show HN: AgentGate – Stake-Gated Action Microservice for AI Agents

https://github.com/selfradiance/agentgate
1•selfradiance•13m ago•0 comments

Show HN: Market Digest: Self-hosted market analysis and Telegram

https://github.com/mutaaf/MarketDigest
1•mutaaf•22m ago•1 comments

Zugunruhe, and what makes things worth doing

https://www.nathanzhao.cc/zugunruhe
2•nzhaa•23m ago•0 comments

Perplexity Computer: What I Built in One Night (Review and Examples)

https://karozieminski.substack.com/p/perplexity-computer-review-examples-guide
1•Lunaboo•26m ago•0 comments

Ask HN: Do you enforce Prettier in all Next.js projects?

1•digi_wares•27m ago•0 comments

Show HN: Notemac++ – A Notepad++-inspired code editor for macOS and the web

https://github.com/sergioadevita/notemac-plus-plus
2•sergioadevita•27m ago•0 comments

Technical Recruiter in 2026

https://anangsha.substack.com/p/technical-recruiting-in-2026-how
1•monolikma•29m ago•0 comments

Lee Kuan Yew – Resources

https://advaypal.com/writes/lky_resources/
2•advaypal•29m ago•0 comments

Neil Sedaka, Singing Craftsman of Memorable Pop Songs, Dies at 86

https://www.nytimes.com/2026/02/27/arts/music/neil-sedaka-dead.html
2•bookofjoe•30m ago•0 comments

Amazon deal with OpenAI shakes up AI landscape

https://www.axios.com/2026/02/27/ai-amazon-openai-chips
1•doener•31m ago•1 comments

Emuko: Fast RISC-V emulator written in Rust, boots Linux

https://github.com/wkoszek/emuko
3•felipap•31m ago•0 comments

GAIT: A Voluntary Transparency Framework for AI Use in Games

https://hypervisor.studio/blog/introducing-gait-game-ai-transparency.html
2•jamesjennings•32m ago•0 comments

Moltler the Skills Framework for Elasticsearch

https://hub.moltler.dev/
1•bahaazarmi•34m ago•0 comments

Should Social Media Algorithms Have Age-Based Safeguards for Over-60s?

https://petition.parliament.uk/petitions/758659
2•lalessandro2•34m ago•0 comments

Ask HN: Can our bootstrapped startup keep up?

3•lewq•36m ago•0 comments

Trump instructs federal agencies to stop work with Anthropic

https://www.cnn.com/2026/02/27/tech/anthropic-pentagon-deadline
1•empressplay•36m ago•0 comments

How are we physically caging autonomous AI? (My architecture for kill-switch)

https://plinklogic.tech
1•Johngreetme•37m ago•1 comments

Show HN: QF STEM Ledger – Logging Structured Cognitive Work

https://ledger.quantumformalism.com/
1•bamborde_zaiku•37m ago•0 comments

Write Modern Go Code with Junie and Claude Code

https://blog.jetbrains.com/go/2026/02/20/write-modern-go-code-with-junie-and-claude-code/
1•Annprots•39m ago•1 comments

Paramount strikes deal to buy Warner Bros Discovery for $110B

https://news.sky.com/story/paramount-agrees-to-buy-warner-bros-discovery-in-110bn-deal-13513157
1•austinallegro•40m ago•1 comments

Human brain cells on a chip learned to play Doom in a week

https://www.newscientist.com/article/2517389-human-brain-cells-on-a-chip-learned-to-play-doom-in-...
3•stared•40m ago•0 comments

Rank5.io – a party game about the people you play with

https://rank5.io/howTo
2•blendaddict•42m ago•2 comments