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

Bravos AI

https://bravos-ai.com/en
1•fabioclinton•3m ago•0 comments

Small World with High Risks (2019) [pdf]

https://www.usenix.org/system/files/sec19-zimmermann.pdf
1•jruohonen•3m ago•1 comments

Ask HN: Last SpaceX Starship launch was in October, what is happening?

1•JPLeRouzic•3m ago•0 comments

Meta, TikTok and Google under investigation about Australia's social media ban

https://www.theguardian.com/australia-news/2026/mar/31/meta-tiktok-snapchat-google-under-investig...
1•beardyw•4m ago•0 comments

Data Inheritance

https://github.com/memononen/data_inheritance
1•sagacity•6m ago•0 comments

A+

https://aplwiki.com/wiki/A%2B
2•tosh•7m ago•0 comments

Show HN: Ganoid – Switch Tailscale coordination servers without re-auth

https://github.com/yashau/ganoid
1•yashau•8m ago•0 comments

New Technique Turns Everyday Surfaces Like Walls and Desks into Touch Panels

https://www.tohoku.ac.jp/en/press/technique_turns_everyday_surfaces_into_touch_panels.html
1•JeanKage•11m ago•0 comments

Show HN: Instant E2E encrypted file sharing from your terminal

https://github.com/file-kiwi/node
1•hwovh•14m ago•0 comments

Delve – Fake Compliance as a Service – Part II – Day 2 of 5

https://deepdelver.substack.com/p/delve-fake-compliance-as-a-service-98a
1•nickvec•14m ago•1 comments

Can 8k Bouncy Springs Hide Secret Messages? (Tutte's Theorem) [video]

https://www.youtube.com/watch?v=3YlC_W5myxg
2•IdealeZahlen•16m ago•0 comments

Show HN: I stopped designing APIs for my apps

https://linkedrecords.com/
1•WolfOliver•20m ago•0 comments

The foundation for composable polyglot software is here almost

https://mariofrancis.co/foundation-for-composable-polyglot-software/
1•paulocuambe•21m ago•0 comments

The Inference Shift – How Cheap Chips Could Put Frontier AI in Everyone's Hands

https://substack.com/home/post/p-192665961
3•arcanemachiner•23m ago•1 comments

TeamPCP Supply Chain Campaign: Update 004

https://isc.sans.edu/index_dyn.html
1•jruohonen•25m ago•1 comments

European Commission downplays ShinyHunters cyberattack impact

https://therecord.media/european-commission-downplays-shinyhunters-cyber-claim
2•jruohonen•28m ago•0 comments

Show HN: Debug:u – decompile a bad mood like a buggy system state

https://debugu.xyz/
1•poppypetalmask•31m ago•1 comments

Two Worlds

https://geohot.github.io//blog/jekyll/update/2026/03/30/two-worlds.html
3•orchestratooor•36m ago•0 comments

Clip Show

https://geohot.github.io//blog/jekyll/update/2026/03/31/clip-show.html
2•orchestratooor•36m ago•0 comments

Show HN: Free AI Coding Skills for Rails

https://www.railsreviews.com/skills
4•julianrubisch•37m ago•0 comments

Vibe Maintainer

https://steve-yegge.medium.com/vibe-maintainer-a2273a841040
2•MrBuddyCasino•40m ago•1 comments

Show HN: Fingerprinting browser-impersonating bots w/o JavaScript (open spec)

https://github.com/rozetyp/rq4
1•rozetyp•41m ago•0 comments

Relationship Communication Coach

https://talkboy.org
1•Veryyy•41m ago•0 comments

Why Your Engineering Team Is Slow (It's the Codebase, Not the People)

https://piechowski.io/post/codebase-drag-audit/
2•grepsedawk•45m ago•1 comments

QuantumLeap: 2.3× faster MoE inference with intelligent expert caching

https://github.com/MartinCrespoC/QuantumLeap---Llama.cpp-TurboQuant
1•ikharoz•45m ago•0 comments

Executive Briefing: The Invisible AI Input

https://dekodiert.de/en/articles/unsichtbare-input
2•sdoering•50m ago•0 comments

1-day RCE vulnerability in vim

https://github.com/vim/vim/security/advisories/GHSA-2gmj-rpqf-pxvh
3•weinzierl•54m ago•1 comments

Stripe Won't Save You from Bad Access Control

https://www.getprobo.com/blog/2026-03-31-stripe-security-101
1•gearnode•55m ago•0 comments

DIY Wall-Mounted Solar Panels on Unistrut Mounting [video]

https://www.youtube.com/watch?v=emAul4ozc1Q
2•thelastgallon•55m ago•0 comments

The "Hiring Boom" Is a Mirage

https://www.highsignalhiring.com/p/the-hiring-boom-is-a-mirage
1•BerislavLopac•57m ago•1 comments