frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

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

Show HN: Printable monthly calendars as high‑quality PDF

https://cal.thinkclub.in/
1•venmul•1m ago•0 comments

Koito Scrobbler

https://github.com/gabehf/Koito
1•nntwozz•2m ago•1 comments

It's 2026 now. Is Webpack 6.x going to happen?

1•narukeu•3m ago•0 comments

I built the growth engine instead of programmable SEO

https://www.google.com/search?q=site%3Avect.pro&oq=&gs_lcrp=EgZjaHJvbWUqCQgAECMYJxjqAjIJCAAQIxgnG...
1•afrazullal•8m ago•0 comments

Learning to Play Tic-Tac-Toe with Jax

https://joe-antognini.github.io/ml/jax-tic-tac-toe
1•antognini•9m ago•0 comments

One Hundred Years of Gossip

https://www.plough.com/en/topics/community/one-hundred-years-of-gossip
1•lermontov•13m ago•0 comments

Corundum – open-source FPGA-based NIC and platform for in-network compute

https://github.com/corundum/corundum
2•peter_d_sherman•15m ago•0 comments

Show HN: Website to Markdown API for LLM

https://agenty.com/tools/markdown
1•vrathee•15m ago•0 comments

Neural Networks: Zero to Hero

https://karpathy.ai/zero-to-hero.html
2•suioir•17m ago•1 comments

Train Stalling with Wheel Slips and Sand [video]

https://www.youtube.com/watch?v=EXCFHnzeeco
2•thunderbong•23m ago•0 comments

Freedom Planet 2 Main Characters Design Explained (2020)

https://tysontan.com/gallery/gallery-others/freedom-planet-2-main4/
1•Ariarule•23m ago•0 comments

Ralph Driven Development

https://gist.github.com/sharno/a3a14f6c440dd8c8cfbb6091987a5072
1•sharno•27m ago•0 comments

Show HN: AI compliance automation for startups and lean teams

https://regulance.io/
1•felixche•28m ago•0 comments

Show HN: Create PDFs in ChatGPT natively. Convert Latex to pdf and download

https://www.strivemath.com/pdf
2•apulkit6•36m ago•1 comments

Show HN: SixLogger, a Simple POSIX-compliant Logger function for shell scripts

https://github.com/esaporski/sixlogger
2•EatFlamingDeath•36m ago•0 comments

Android Tablet as Mac Display

1•jefferyabbott•38m ago•0 comments

Show HN: Claude Reflect – Auto-turn Claude corrections into project config

https://github.com/BayramAnnakov/claude-reflect
2•Bayram•48m ago•0 comments

Is the World Ready for Another Programming Language in 2026, Now AI Writes Code?

https://raw.githubusercontent.com/jamesd-comelang/come-lang/refs/heads/main/examples/come_demo.co
1•jamesd_comelang•53m ago•1 comments

Show HN: Krowdovi – Video-based indoor navigation on a DePIN creator economy

https://github.com/daftpixie/krowdovi
2•24hrmvp•56m ago•2 comments

CoreWeave credit agreement amendment puts liquidity covenant in focus

https://ts2.tech/en/coreweave-crwv-stock-today-credit-agreement-amendment-puts-liquidity-covenant...
2•zerosizedweasle•57m ago•0 comments

SSH Key Best Practices for 2025 – Using ed25519, key rotation

https://www.brandonchecketts.com/archives/ssh-ed25519-key-best-practices-for-2025
5•nthdeui•1h ago•0 comments

Elemental Serenity

https://elemental-serenity.vercel.app/
1•memalign•1h ago•1 comments

FPGA Videos

https://www.youtube.com/channel/UCUqaXvtKd1lx23ouXWlAk2Q
1•brian_herman•1h ago•0 comments

Light Drives Micrometer-Sized Motor and Gear Train

https://www.electronicdesign.com/technologies/analog/article/55340751/electronic-design-light-dri...
1•WaitWaitWha•1h ago•0 comments

I built a tool to create AI agents that live in iMessage

https://tryflux.ai/
1•danielsdk•1h ago•1 comments

Ask HN: What's the future of software testing and QA?

3•sjgeek•1h ago•2 comments

Crafting Nature Beyond Technology: A Project from Roots to Leaves

https://tympanus.net/codrops/2025/12/04/crafting-nature-beyond-technology-a-project-from-roots-to...
2•PaulHoule•1h ago•0 comments

Show HN: GenVibe – AI generates React apps from text, Figma, screenshots

https://genvibe.pro
1•genvibe•1h ago•0 comments

Frustrated with YouTube, built LLM pipeline to extract 10min clips from podcasts

https://podtoc.com/app/
1•conradbez•1h ago•2 comments

Tech Pulse: Wrapping 2025, Igniting 2026

https://future.forem.com/om_shree_0709/tech-pulse-wrapping-2025-igniting-2026-5a77
1•OmShree0709•1h ago•0 comments