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

Clawsec: Open-source plugin for OpenClaw.ai that blocks dangerous actions

https://www.clawsec.bot
1•subho007•55s ago•1 comments

The crucial first step for designing a successful enterprise AI system

https://www.technologyreview.com/2026/02/02/1131822/the-crucial-first-step-for-designing-a-succes...
1•gnabgib•1m ago•0 comments

Stop Drowning in Your Thoughts

https://curiositysink.substack.com/p/stop-drowning-in-your-thoughts
1•raptisj•1m ago•1 comments

Show HN: Solscan-CLI – Scan Solana wallets and audit DeFi from terminal

https://github.com/contactn8n410-del/solscan-cli
1•solscan_dev•1m ago•0 comments

Mozilla Readability

https://github.com/mozilla/readability
1•blenderob•1m ago•0 comments

ParipueiraBeberibeceara

http://ParipueiraBeberibeceara.com
1•Hackersing•2m ago•0 comments

Musk fires up SpaceX,Bezos pushes Blue Origin as billionaires race China to moon

https://www.reuters.com/business/aerospace-defense/musk-fires-up-spacex-bezos-pushes-blue-origin-...
1•tartoran•2m ago•0 comments

SnapLLM: Switch between local LLM in under 1ms Multi-model&-modal serving engine

https://github.com/snapllm/snapllm
1•maheshvaikri99•2m ago•1 comments

Challenges of revision control in the LLM era

https://gist.github.com/gritzko/77b2e9ff9c2c377a18ccf8ce363e18eb
1•gritzko•3m ago•0 comments

Condom Crisis Hits Milano Games on Valentine's Day

https://www.reuters.com/sports/condom-crisis-hits-milano-games-valentines-day-2026-02-14/
2•tartoran•4m ago•1 comments

Textpattern CMS 4.9.1 released: security fixes, patches and tweaks

https://textpattern.com/weblog/textpattern-491-released-security-fixes-patches-and-tweaks
1•petecooper•9m ago•0 comments

Show HN: Aurora-OS.js – High fidelity hacking simulator pre-alpha

https://github.com/mental-os/Aurora-OS.js
1•mentalos•13m ago•0 comments

Visions of America

https://www.lrb.co.uk/the-paper/v48/n02/adam-shatz/another-country
1•mitchbob•13m ago•1 comments

Show HN: Managing dotfiles without complex tools – just symlinks and Makefiles

https://github.com/Thysrael/dotfiles
1•gg_equal_G•15m ago•0 comments

AI Twitter's favourite lie: everyone wants to be a developer

https://www.joanwestenberg.com/ai-twitters-favourite-lie-everyone-wants-to-be-a-developer/
2•theowenyoung•18m ago•0 comments

Elvish as She Is Spoke [pdf]

https://www.elvish.org/articles/EASIS.pdf
1•BerislavLopac•18m ago•0 comments

Dutch House of Representatives advances controversial 36% tax law

https://www.tradingview.com/news/cointelegraph:e4ef95715094b:0-dutch-house-of-representatives-adv...
2•janandonly•19m ago•0 comments

Instruction decoding in the Intel 8087 floating-point chip

https://www.righto.com/2026/02/8087-instruction-decoding.html
2•pwg•22m ago•1 comments

Show HN: Describe your Discord server in one sentence – AI builds it in 60s

https://buildmydiscord.com/
1•RobTheFrog•23m ago•0 comments

Gamma Function: Visualization for Complex Arguments

https://vanilla-gamma-graph.netlify.app/
1•cpuXguy•24m ago•1 comments

Secure Port Forwarding Without Exposing Internal Services

2•brintha•25m ago•0 comments

World's Only Pencil Sharpener Museum

https://www.bostonglobe.com/2026/02/13/lifestyle/pencil-sharpener-museum-ohio/
4•bookofjoe•25m ago•1 comments

OpenAI sidesteps Nvidia with unusually fast coding model on plate-sized chips

https://arstechnica.com/ai/2026/02/openai-sidesteps-nvidia-with-unusually-fast-coding-model-on-pl...
2•sea-gold•25m ago•0 comments

I love validating E2E while vibing in my code editor, possible? Hell Yes

https://sebringj.github.io/autonomo/
3•sebringj•26m ago•1 comments

What Is OTLP and How It Works Behind the Scenes

https://signoz.io/blog/what-is-otlp/
2•dhruv_ahuja•27m ago•0 comments

GitGen: A static Git repository website generator

https://cybrkyd.com/post/gitgen-a-static-git-repository-website-generator/
3•londonanon•28m ago•0 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
2•robotbot•28m ago•1 comments

Dinosaur National Monument Construction Work Turns Up New Fossils

https://www.smithsonianmag.com/smart-news/dinosaur-national-monument-construction-work-turns-up-n...
4•bryanrasmussen•29m ago•1 comments

First Proof

https://1stproof.org/
1•cod1r•30m ago•1 comments

Public Universal Friend

https://en.wikipedia.org/wiki/Public_Universal_Friend
2•helloplanets•30m ago•0 comments