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

France's 'French Response' uses memes and sarcasm to fight disinformation on X

https://www.euronews.com/my-europe/2026/02/13/frances-french-response-uses-memes-and-sarcasm-to-f...
1•saubeidl•26s ago•0 comments

Show HN: I built a free keyword checker to see if you can rank

https://kitful.ai/write-tools/serp-content-analyzer
1•eashish93•1m ago•0 comments

POK: A Knowledge Economy Where Verified Human Knowledge Mints Currency

https://paragraph.com/@pok-whitepaper/pok-proof-of-knowledge-%E2%80%94-a-decentralized-knowledge-...
1•sihwan•4m ago•1 comments

StudyWithMiku: Open-source AI study assistant

https://github.com/zkzkGamal/StudyWithFriend
1•Zakaria_Gamal•5m ago•1 comments

Software as Wiki, Mutable Software

https://blog.exe.dev/software-as-wiki
1•tosh•5m ago•0 comments

Show HN: DoScript – DSL for file automation with natural language syntax

https://github.com/TheServer-lab/DoScript
1•server-lab•8m ago•0 comments

Nvidia PersonaPlex: Natural Conversational AI with Any Role and Voice

https://research.nvidia.com/labs/adlr/personaplex/
2•matco11•8m ago•0 comments

Phantom-WG

1•remrearas•9m ago•0 comments

Qwen 3.5 397B and Qwen 3.5 Plus released

https://chat.qwen.ai/
1•dworks•12m ago•1 comments

A isometric city builder in JavaScript

https://github.com/victorqribeiro/isocity
2•kothariji•12m ago•0 comments

Xiaomi-robotics-0 – an open-source Vision-Language-Action model

https://xiaomi-robotics-0.github.io
1•msadowski•13m ago•0 comments

Btrfs disk errors to fall asleep to

https://ounapuu.ee/btrfs-disk-errors-to-fall-asleep-to/index.html
1•argulane•15m ago•0 comments

Decoupling Loudspeakers the Right Way

https://sumtozero.net/en/posts/decoupling-loudspeakers/
1•miguelmarques•16m ago•1 comments

A great heat-death scenario for the SaaS model

https://dindon.one/@henry/116079355030077955
1•behindai•17m ago•0 comments

Why do I feel bad following recommendation algorithms?

https://edwardbx.com/articles/recommendation-algorithms/
1•crassus_ed•17m ago•0 comments

Show HN: A Toby alternative with vertical tabs and no forced new tab override

https://getorganice.vercel.app
1•tankhoa2308•18m ago•0 comments

The Danger of Shipping Fast

https://newsletter.posthog.com/p/the-hidden-danger-of-shipping-fast
1•tchalla•18m ago•0 comments

A Tree of AI Model Names

https://sajarin.com/blog/modeltree/
1•Sajarin•18m ago•0 comments

You Never See the Whole Shape at Once

https://www.robpanico.com/articles/display/?entry_short=you-never-see-the-whole-shape-at-once
1•retrocog•22m ago•1 comments

Show HN: The Yatima Scale – Measuring civilizations by depth, not energy

https://yatima-scale.netlify.app
1•gillesturpin•22m ago•0 comments

Zero-Knowledge Encryption: A Security Analysis of Cloud-Based Password Managers

https://zkae.io/
3•mlegner•22m ago•1 comments

Monolith – muddying the waters of the digital copyright debate (2011)

https://monolith.sourceforge.net
1•helloplanets•22m ago•0 comments

Google criticizes Europe's plan to adopt free software

https://piefed.zip/c/technology/p/1086069/google-criticizes-europe-s-plan-to-adopt-free-software
2•zoobab•23m ago•0 comments

Forth is just fast Lisp (2017)

https://old.reddit.com/r/Forth/comments/5wsbgr/forth_is_just_fast_lisp/
1•tosh•23m ago•1 comments

Do LLMs hallucinate more in Czech than in English?

https://svana.name/2026/02/do-llms-hallucinate-more-in-czech-than-in-english/
2•msvana•23m ago•0 comments

India orders social media firms to remove unlawful content within three hours

https://www.bbc.com/news/articles/c2lrn8q2q24o
1•thisislife2•29m ago•2 comments

Evolution "Doesn't Need" Mutation. Here's Proof. - Blaise Agüera y Arcas [video]

https://www.youtube.com/watch?v=M2iX6HQOoLg
1•bob1029•29m ago•0 comments

Show HN: Turning web highlights into deterministic Markdown (Sigilla)

1•northerndev•30m ago•0 comments

Ask HN: Do LLM agents need a separate safety layer?

2•amabito•31m ago•0 comments

Show HN: MLX-Ruby – Ruby Bindings for Apple's MLX ML Framework

https://github.com/skryl/mlx-ruby
1•skryl•33m ago•1 comments