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

MCPs are dead - CLIs won

1•umairnadeem123•4m ago•0 comments

Surprising Effectiveness of Masking Updates in Adaptive Optimizers

https://arxiv.org/abs/2602.15322
1•energy123•7m ago•0 comments

California Succession Proposition on the Ballot

https://ballotpedia.org/California_Independence_Plebiscite_Initiative_(2026)
1•donsupreme•8m ago•0 comments

I built a bare-metal UI framework to survive extreme CPU contention

https://toyz.github.io/loom/#/
1•helba_the_ai•12m ago•1 comments

A Firefox Addon to relive old YouTube videos

https://github.com/Zaki101Aslam/time-machine-firefox
1•Zaki101Aslam•12m ago•1 comments

Drawing 3D shapes using signed distance functions

https://aabiji.github.io/html/sdfs.html
1•aabiji•13m ago•0 comments

Willie Colón, salsa pioneer, has died at 75

https://www.npr.org/2026/02/21/nx-s1-5722320/willie-colon-obituary
1•toomuchtodo•14m ago•1 comments

Show HN: OpenTiger – Autonomous dev orchestration that never stops

https://github.com/Andyyyy64/openTiger
1•andyyyy64•18m ago•0 comments

Show HN: A 2D animation DSL – every line written by Claude, zero human code

https://github.com/frankhart2018/animdsl
1•siddhartha98•19m ago•0 comments

Ways to Harness AI

https://lukasfischer.ch/node/37
1•lukasfischer•22m ago•0 comments

Mac Media Stack – One-command Plex server with auto-healing on macOS

https://github.com/liamvibecodes/mac-media-stack
1•liamvibecodes•22m ago•0 comments

I scanned 30 popular AI projects for tamper-evident LLM evidence. 0 had it

https://github.com/Haserjian/assay
1•TimAssay•28m ago•1 comments

BEMoji CSS Framework: BEM, but make it unreadable

https://tomhayes.github.io/BEMoji/
1•thunderbong•29m ago•0 comments

Ferret-UI Lite – Apple on-device end-to-end GUI agent

https://arxiv.org/abs/2509.26539
1•twalichiewicz•33m ago•0 comments

Open source IoT board with 400 MHz dual-core RISC-V chip and lots of I/O for $29

https://liliputing.com/olimex-esp32-p4-pc-is-an-open-source-iot-board-with-a-400-mhz-dual-core-ri...
1•CharlesW•33m ago•0 comments

Ferret-UI Lite: Lessons from Building Small On-Device GUI Agents

https://machinelearning.apple.com/research/ferret-ui
1•CharlesW•35m ago•0 comments

ECS Library for TypeScript

https://github.com/2khan/oecs
1•2khan•35m ago•0 comments

Comparing Job Offers

https://longviewy.com/pay-raise-math-for-comparing-job-offers/
1•josephcs•38m ago•0 comments

Influencers want to adopt the 'analog lifestyle' for 2026

https://www.latimes.com/california/story/2026-02-21/analog-lifestyle-trend
2•1vuio0pswjnm7•39m ago•0 comments

Cal.com – Open Scheduling Infrastructure

https://cal.com/
1•OsrsNeedsf2P•43m ago•1 comments

Show HN: Trawlx - Tweet text, likes, and retweets as JSON, no API keys

https://github.com/timstarkk/trawlx
2•timstark•45m ago•1 comments

Show HN: Halal Food AI – Analyze food ingredients using Gemini

https://apps.apple.com/us/app/halal-food-ai-scanner/id6755012360
2•ilkerguldali•45m ago•0 comments

Caltech Astrophysicist Carl Grillmair Has Died

https://www.caltech.edu/about/news/caltech-mourns-the-passing-of-carl-grillmair-19592026
3•cf100clunk•49m ago•1 comments

Why are my AI coding sessions falling apart mid-way?

https://techroom101.substack.com/p/why-are-my-ai-coding-sessions-falling
1•ahaydar•56m ago•1 comments

High-Fidelity AI Voice Generator and Cloning

https://magicvoice.app
1•julian2026•57m ago•0 comments

I found the most powerful large models in various fields

https://nanoai.run
1•Li_Evan•57m ago•1 comments

Institute of Mentalphysics

https://www.atlasobscura.com/places/institute-mentalphysics
1•andsoitis•1h ago•0 comments

Openclaw.net

https://github.com/clawdotnet/openclaw.net
1•scopeT86•1h ago•1 comments

People Loved the Dot-Com Boom. The A.I. Boom, Not So Much

https://www.nytimes.com/2026/02/21/technology/ai-boom-backlash.html
25•1vuio0pswjnm7•1h ago•9 comments

Meta has an answer to YouTube Face

https://lolware.net/blog/meta-answer-youtube-face/
1•technion•1h ago•0 comments