frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

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

Nvidia Nemotron 3.5 Transcribe: open ASR for 40 languages

https://huggingface.co/blog/nvidia/nemotron-transcribe-granary
2•wondersky•1m ago•0 comments

Ask HN: Does the "domain expertise" helps founders in this AI era?

1•danver0•2m ago•0 comments

I Used GPT to Design a Feature Packed PCB and It Worked

https://mattinglot.substack.com/p/i-used-gpt-to-design-a-feature-packed
1•handfuloflight•3m ago•0 comments

Trump says he's ending restrictions on climate-warming methane from oil drilling

https://www.npr.org/2026/10/28/g-s1-150299/trump-methane-restrictions
3•dataflow•4m ago•0 comments

3D explorer for courtyard proposal for Washington DC's RFK stadium neighborhood

https://rfk-waterfront-courtyard-urbanist.aliciapederson.chatgpt.site
1•idbnstra•4m ago•0 comments

Brazilian skimmer gang hijacks Plausible analytics script on Convertr checkouts

https://www.bleepingcomputer.com/news/security/hackers-hijack-convertr-analytics-script-to-steal-...
1•dvaplima•7m ago•0 comments

How to Build a Slow Product in the Fast AI Era

https://tw93.fun/en/2026-10-26/mole-product.html
1•Tw93•8m ago•0 comments

How AI could work in hospitals

https://briankitano.com/essays/ai-in-hospitals/
2•bkitano19•9m ago•0 comments

Walter Koenig, actor best known as Chekov on Star Trek, dies aged 90

https://www.theguardian.com/culture/2026/oct/26/walter-koenig-actor-star-trek-dies
1•raffael_de•10m ago•0 comments

Show HN: SnapFire FSR: Full Stack Web Apps Served via Rust IR Engine

https://snapfirers.com/
2•excsn•11m ago•0 comments

High Voltage

https://joeldueck.com/blog/2026/high-voltage.html
2•velcrovan•11m ago•1 comments

Show HN: BugTape – production bugs your coding agent can read and fix over MCP

https://bugtape.ai/
1•jveldsman•11m ago•0 comments

OSS Exits in EU, ES and US

https://www.agent-swarm.dev/blog/spain-open-source-companies-zero-unicorns
2•pls-dnt-deploy•12m ago•0 comments

Adobe isn't dead yet. That's not the point

https://medium.com/rockedscience/adobe-aint-dead-yet-9588a4deafc0
1•edonosotti•13m ago•0 comments

The young are conformists in denial

https://www.ft.com/content/70280c68-2ae0-4656-b013-281eb75a197a
1•rustoo•13m ago•0 comments

Welcome to the NeXT Decade- Steve Jobs' NeXTSTEP

https://authopirecompendium.com/2026/10/27/nextstep-welcome-to-the-next-decade-steve-jobs-gui-won...
3•fabiojava•14m ago•0 comments

Longitudinal Changes InWearable-Captured PhysiologyBefore Sudden Cardiac Death

https://www.jacc.org/doi/epdf/10.1016/j.jaccas.2026.110397
1•brandonb•15m ago•0 comments

What It Costs to Think

https://www.chrbutler.com/what-it-costs-to-think
2•delaugust•15m ago•0 comments

Text-First: If It Can Be Text, It Should Be Text

https://martinbosslet.dev/en/blog/2026/text-first/
2•emboss•16m ago•1 comments

Brieflox – privacy-first iOS mail client with OpenPGP, no back end

https://testflight.apple.com/join/upeNtXP7
1•marc0janssen•17m ago•0 comments

Ask HN: What's the Culture at Google Like Now? For Core Teams Like Ads, Search?

1•karakoram•17m ago•0 comments

Show HN: Nekot, an iPhone app that warns you before Claude Code limits hit

https://jeman.net/nekot/
1•venshine•17m ago•0 comments

Why are all LLMs obsessed with Japanese culture?

https://arxiv.org/abs/2604.21751
2•surprisetalk•19m ago•0 comments

Show HN: An AI workspace with shared procedural memory as reusable skills

https://github.com/TheWariend/CleanSlate
1•maaaz•20m ago•0 comments

Laid off 60 days in: what is the tech industry doing to developers?

https://samueleast.co.uk/playground/laid-off-from-plex-60-days-in
3•CharlesW•20m ago•1 comments

Cisco open sources tool for detecting AI agents on hacking sprees

https://www.theregister.com/security/2026/10/28/cisco-open-sources-tool-for-detecting-ai-agents-o...
2•DemiGuru•22m ago•0 comments

Pine Tree Riot of 1772

https://en.wikipedia.org/wiki/Pine_Tree_Riot
1•burnt-resistor•22m ago•0 comments

Meta's Muse Realtime Avatar turns any image into a talking AI character

https://research.meta.ai/blog/bringing-your-muse-to-life
2•javiercr•23m ago•1 comments

Tesla Semi catches fire on I-880

https://electrek.co/2026/10/28/tesla-semi-fire-i-880-hayward-no-crash/
4•metadat•25m ago•0 comments

A garbage collector for LLM context windows, written in Rust

1•gionag•26m ago•0 comments