frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

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

Being the Human in the Loop – Kevlin Henney

https://www.youtube.com/watch?v=vpYJMr1pJRY
1•mcp_•29s ago•0 comments

Emotion Concepts and Their Function in a Large Language Model

https://transformer-circuits.pub/2026/emotions/index.html
1•Anon84•2m ago•0 comments

Trinity-Large-Thinking: Open-source 398B MoE (13B active) for agentic tasks

https://firethering.com/trinity-large-thinking-open-source-agent-model/
1•steveharing1•3m ago•0 comments

Trying to Be Responsible

https://chatgpt.com/s/t_69d0ca9364ac8191868c2850d26305aa
1•aljgz•6m ago•1 comments

Every dependency you add is a supply chain attack waiting to happen

https://benhoyt.com/writings/dependencies/
1•ingve•9m ago•0 comments

Engineering a Better Java Build Tool [video]

https://www.youtube.com/watch?v=OtsJ902k458
1•lihaoyi•13m ago•0 comments

The Evolution of x86 SIMD: From SSE to AVX-512

https://bgslabs.org/blog/evolution-of-x86-simd/
1•jiehong•14m ago•1 comments

The global oil crisis is turning into an everything crisis

https://www.cnn.com/2026/04/04/business/global-oil-crisis-shortage-everything-intl-hnk-dst
1•iamflimflam1•15m ago•0 comments

Show HN: Deeplink – Go library for short links, click tracking, and OG previews

https://github.com/yinebebt/deeplink
1•yinebeb_sc•17m ago•0 comments

Show HN: I rebuilt search using physics instead of statistics. +18.5% NDCG 10

https://github.com/Razshy/resonance-search
1•KendallCBooker•18m ago•0 comments

European Commission cloud breach: a supply-chain compromise

https://cert.europa.eu/blog/european-commission-cloud-breach-trivy-supply-chain
2•Sandman•18m ago•0 comments

Show HN: LaneKeep - let your agent run within boundaries that you define

https://github.com/algorismo-au/lanekeep
1•mightymo1•18m ago•1 comments

Show HN: Prematrix

https://www.prematrix.dev/
1•thomasfromcdnjs•21m ago•0 comments

Excess mortality attributable to the 2025 Iberian Peninsula blackout

https://www.medrxiv.org/content/10.1101/2025.06.03.25328877v1
2•mpweiher•22m ago•0 comments

Should you change your life decisions if we're being watched by alien drones?

https://marginalrevolution.com/marginalrevolution/2026/04/how-should-you-change-your-life-decisio...
1•jger15•22m ago•0 comments

Mechanical Techno Updates

https://www.youtube.com/watch?v=sBhGbHVQYvI
1•ngcazz•24m ago•0 comments

Mixed Precision Quantization on mlx comes with TurboQuant implementation

https://twitter.com/thin_signal/status/2028412948167942334
2•jsilence•25m ago•1 comments

Is it workig download yt video through yt-dlp after deploying?

1•sunill•33m ago•0 comments

LÖVE: 2D Game Framework for Lua

https://github.com/love2d/love
1•cl3misch•34m ago•0 comments

Talent is everywhere, opportunity is not. We are all losing out because of this

https://ourworldindata.org/talent-is-everywhere-opportunity-is-not
2•prakashqwerty•37m ago•1 comments

110k+ publications from 2025 might include hallucinated citations

https://www.nature.com/articles/d41586-026-00969-z
4•cyclecycle•39m ago•3 comments

SQLite in Production: Lessons from Running a Store on a Single File

https://ultrathink.art/blog/sqlite-in-production-lessons
2•thunderbong•39m ago•1 comments

Show HN: ZipSee – explore remote ZIP archives using HTTP range requests

https://zipsee.pages.dev/
1•vsekar•40m ago•0 comments

Free AI video clipper using scene and speech-based segmentation

1•sunill•40m ago•0 comments

Iran Threatens to Bomb 1GW Stargate AI Datacenter in Abu Dhabi

https://timesofindia.indiatimes.com/technology/tech-news/iran-threatens-to-bomb-1gw-stargate-ai-d...
1•ZunarJ5•40m ago•0 comments

Chester Zoo leads national call for weather app changes

https://www.chesterzoo.org/news/chester-zoo-leads-national-call-for-weather-app-changes
1•Kaibeezy•40m ago•0 comments

Nex Life Logger, local activity tracker with AI agent integration

https://github.com/NexaiGuy/nex-life-logger
1•NexAIGuy•42m ago•0 comments

"Faking 'realness' on a computer doesn't get us anywhere new."

https://www.itsnicethat.com/articles/elizabeth-goodspeed-on-analogue-creative-industry-290126
1•jruohonen•44m ago•0 comments

Power-washing and mowing: Why millions are playing games about mundane jobs

https://www.bbc.com/news/articles/cj60r2kdnw1o
2•breve•47m ago•1 comments

The HTML Review 05

https://thehtml.review/05/
1•vinhnx•48m ago•0 comments