frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

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

Transmute – a self-hosted file converter with a web UI and REST API

https://github.com/transmute-app/transmute
1•NeonVariant•5m ago•0 comments

Ask HN: Why hasn't someone built a decentralized compute network?

2•buffer_overlord•6m ago•1 comments

Google Scholar's citation exporter silently drops single-letter surnames

https://matthewearnest.dev/blog/google-scholar-single-letter-surname
1•mearnest•6m ago•0 comments

Show HN: My OSINT dashboard with 60 feeds now has a pseudonymous P2P testnet

https://github.com/BigBodyCobain/Shadowbroker/tree/main
1•vancecookcobxin•7m ago•0 comments

Emacs: Save any buffer as PDF (my new buffer-to-pdf package)

https://protesilaos.com/codelog/2026-05-02-emacs-buffer-to-pdf-new-package/
1•dalvrosa•13m ago•0 comments

GSoC2026: What to expect (image editing, animation, 3D, and engineering)

https://librearts.org/2026/04/gsoc2026-projects/
1•prokoudine•13m ago•0 comments

Have online worlds become the last free places for children?

https://psyche.co/ideas/have-online-worlds-become-the-last-free-places-for-children
2•paulpauper•15m ago•0 comments

Stop Begging Extension for LibreOffice

https://extensions.libreoffice.org/en/extensions/show/867
2•mmarian•15m ago•1 comments

Should we be scared of China's surpluses?

https://jzmazlish.substack.com/p/should-we-be-scared-of-chinas-surpluses
1•paulpauper•15m ago•0 comments

AI music is flooding streaming services – but who wants it?

https://www.theverge.com/column/921599/ai-music-is-flooding-streaming-services-but-who-wants-it
1•Brajeshwar•16m ago•0 comments

Five Banana Lessons

https://allensthoughts.com/2026/05/03/five-banana-lessons/
2•herbertl•16m ago•0 comments

Lilly, AI biotech Profluent ink $2.25B pact in search of genetic 'holy grail'

https://www.biospace.com/deals/lilly-ai-biotech-profluent-ink-2-25b-pact-in-search-of-genetic-med...
1•gmays•17m ago•0 comments

Porsche will contest Laguna Seca in historic colors of the Apple Computer livery

https://newsroom.porsche.com/en_US/2026/motorsport/porsche-will-contest-laguna-seca-in-historic-c...
1•Amorymeltzer•18m ago•0 comments

Some Important Numbers for Developers (2018)

http://russolsen.com/articles/2018/04/25/some-important-numbers-for-developers.html
2•chalmovsky•18m ago•0 comments

The world's longest railway tunnel is being built under the Alps

https://www.euronews.com/my-europe/2026/05/01/world-record-made-in-europe-the-worlds-longest-rail...
1•vrganj•25m ago•0 comments

Ask HN: Tips for Longevity, as a Software Engineer

1•2bird3•28m ago•0 comments

Modern jet engine turbines: each blade a single crystal (2015)

https://www.americanscientist.org/article/each-blade-a-single-crystal
1•whycome•29m ago•0 comments

Ask HN: Please, I need your help to try out an iOS app I work on

1•erosa01•29m ago•2 comments

Alert-Driven Monitoring

https://simpleobservability.com/docs/alert-driven-monitoring
1•khazit•29m ago•0 comments

ImagePrint 1.52 Released

https://www.imageprint.io/blog/whats-new-in-imageprint-1-52/
1•coragi•31m ago•0 comments

CPU Work and GPU Work

https://www.talhoffman.com/2026/05/03/cpu-work-and-gpu-work/
2•talhof8•34m ago•0 comments

Fisheries and Aquaculture

https://www.oecd.org/en/topics/fisheries-and-aquaculture.html
1•mooreds•35m ago•0 comments

Show HN: Hello, World in many different languages

https://languages.jdunn.dev/
2•jdironman•37m ago•2 comments

NOAA forecaster on how this year's El Niño could shatter records

https://www.livescience.com/planet-earth/weather/one-of-the-most-rapid-transitions-that-ive-seen-...
2•ukz•37m ago•0 comments

I Have Lived in Your Camp

https://green.spacedino.net/i-have-lived-in-your-camp/
1•mooreds•39m ago•0 comments

The Petroleum System Is Entering Its Volatile Decline Phase

https://cleantechnica.com/2026/04/29/the-petroleum-system-is-entering-its-volatile-decline-phase/
1•xbmcuser•40m ago•0 comments

Company said I could move and then changed their mind

https://www.askamanager.org/2026/04/company-said-i-could-move-and-then-changed-their-mind-how-do-...
3•mooreds•44m ago•0 comments

Show HN: I made a simulator for personal finance (5 year update)

https://projectionlab.com/
1•scubakid•45m ago•0 comments

Custom Voices and Voice Library

https://x.ai/news/grok-custom-voices
1•tjek•48m ago•0 comments

I'm a late arrival to short-form video – its effect on my life has shocked me

https://www.theguardian.com/commentisfree/2026/may/03/algorithm-short-form-video-overload
3•andsoitis•49m ago•0 comments