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

Show HN: HelixNotes – UpNote-inspired local-first Markdown notes in Rust

https://helixnotes.com
1•ArkHost•1m ago•0 comments

Puffy Alps

https://ladenhauf.com/blog/puffy-alps/
1•snzro•3m ago•0 comments

GitHub: AnchorID is a minimal attribution resolver for people

https://github.com/lowerpower/AnchorID
1•mycal•3m ago•0 comments

Trusting Trust in the Fediverse

https://evilmaid.net/blog/trusting-trust-fediverse/index.html
1•airhangerf15•3m ago•0 comments

Show HN: Vibe Coded Math Games

https://eruci.com/a.html
1•eruci•4m ago•0 comments

Show HN: Nomad Tracker, a local-first iOS app to track visas and tax residency

https://www.thenomadtracker.com
1•gotzonza•4m ago•1 comments

Show HN: Privacy-first iOS Keyboard with above-key predictions

https://www.klava.space/
1•shimku•5m ago•0 comments

Love in the stacks of the LOC

https://blogs.loc.gov/music/2026/02/love-in-the-stacks/
1•chmaynard•6m ago•0 comments

Show HN: A CLI tool to simplify and automate common VPS configuration tasks

https://the-ultimate-tool-for-configuring-vps.wiar8.com/
1•Wiar8•6m ago•0 comments

Property-based testing is about to rule the (software) world

https://tybug.dev/specs/
2•tybug•7m ago•0 comments

Why Colonize Space: The Need for Frontier

https://medium.com/@darkft/why-colonize-space-the-need-for-frontier-dd03c443a2f3
1•d_silin•7m ago•0 comments

Hydra Joins Supabase

https://supabase.com/blog/hydra-joins-supabase
1•rottencupcakes•8m ago•0 comments

CBP Signs Clearview AI Deal to Use Face Recognition for 'Tactical Targeting'

https://www.wired.com/story/cbp-signs-clearview-ai-deal-to-use-face-recognition-for-tactical-targ...
2•laurex•9m ago•0 comments

A piece of code that causes LLVM Flang to generate NaN/Inf randomly

https://github.com/llvm/llvm-project/issues/180957
1•zaikunzhang•10m ago•1 comments

Airspace closure followed spat over drone-related tests and balloon shoot-down

https://www.cbsnews.com/news/airspace-closure-followed-spat-over-drone-related-tests-and-party-ba...
2•mhb•10m ago•0 comments

NetNewsWire Turns 23

https://netnewswire.blog/2026/02/11/netnewswire-turns.html
2•robin_reala•10m ago•0 comments

MolmoSpaces: A large-scale, open platform and benchmark for embodied AI research

https://allenai.org/blog/molmospaces
1•maxloh•11m ago•1 comments

Show HN: Stop Getting Rejected by ATS – I Built a Fix

https://arzunocv.site
1•common_creator•12m ago•1 comments

Spotify-fs Store any file inside Spotify tracks

https://github.com/Xelckis/spotify-fs
2•delduca•14m ago•0 comments

Show HN: Gottp – A Postman/Insomnia-Like TUI API Client Built in Go

https://github.com/sadopc/gottp
2•sadopc•15m ago•0 comments

Migrating from Slurm to Kubernetes

https://blog.skypilot.co/slurm-to-k8s-migration/
6•rombr•16m ago•0 comments

Evolving Git for the next decade (FOSDEM 2026)

https://lwn.net/SubscriberLink/1057561/040a5b0283517773/
2•chmaynard•17m ago•0 comments

Lightweight daemon to remap the Copilot keyboard key in Linux using libevdev

https://github.com/m-bartlett/remap-copilot
2•evah•18m ago•0 comments

We built a museum exhibit about a 1990s game hint line, with a physical binder

https://yarnspinner.dev/blog/hint-line-93/
1•PaulHoule•18m ago•0 comments

EU commission eyes turning 5G antennas into drone detectors

https://www.euractiv.com/news/commission-eyes-turning-5g-antennas-into-drone-detectors/
1•giuliomagnifico•20m ago•0 comments

Maxis Software Toys

https://arbesman.substack.com/p/maxis-software-toys
1•arbesman•20m ago•0 comments

SEO Score for Your Docs

https://docsalot.dev/tools/docs-seo
1•fazkan•20m ago•0 comments

Interactive guide to Bitcoin's proof of work

https://bennet.org/learn/proof-of-work-what-bitcoin-mining-really-does/
2•tombennet•21m ago•1 comments

Show HN: TagLib-WASM – Read/write audio metadata with all JavaScript runtimes

1•CharlesW•21m ago•0 comments

Talk to Proteins

https://www.codyliu.com/chatmol
1•codyyyyliu•22m ago•0 comments