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: Vibe-coded game prototypes. Tell me which to work on

1•chux52•32s ago•0 comments

Do rich people live longer?

https://www.empirical.health/blog/rich-people-live-longer-hims-superbowl/
1•brandonb•41s ago•0 comments

R/IndieAppNews

https://old.reddit.com/r/IndieAppNews/
1•arthurofbabylon•8m ago•0 comments

Building "zero-gap" secrets for a UGC platform

1•Braden-dev•9m ago•0 comments

Show HN: NexVo'-Verdicts for SaaS Ideas

https://nexvo.io/
1•Kasra0•12m ago•0 comments

Bypassing Kernel32.dll for Fun and Nonprofit

https://ziglang.org/devlog/2026/#2026-02-03
1•Retro_Dev•12m ago•0 comments

Show HN: Gohpts tproxy with arp spoofing and sniffing got a new update

https://github.com/shadowy-pycoder/go-http-proxy-to-socks
1•shadowy-pycoder•13m ago•0 comments

Installing Ollama and Gemma 3B on Linux

https://byandrev.dev/en/blog/ollama-in-linux
2•byandrev•14m ago•0 comments

Token Smuggling:How Non-Standard Encoding Bypass AI Security

https://instatunnel.my/blog/token-smuggling-bypassing-filters-with-non-standard-encodings
1•birdculture•15m ago•0 comments

Wearable textile-based phototherapy toward non-invasive hair loss treatment

https://www.nature.com/articles/s41467-025-68258-3
1•T-A•16m ago•0 comments

The 1 feature I'm really liking in the OpenAI Codex App

https://asadjb.com/blog/2026-02-06-the-codex-app-feature-i-really-like
1•asadjb•18m ago•0 comments

BlECSd – Terminal UI Library Built on an Entity Component System

https://github.com/Kadajett/blECSd
1•kadajett•21m ago•1 comments

Even in Her Victory Lap, Jessie Diggins Is Always Thinking About Others

https://www.si.com/winter-olympics/even-in-her-victory-lap-jessie-diggins-is-always-thinking-abou...
1•mmooss•23m ago•1 comments

Jobs getting better? "AI has the potential for a productivity uplift"

https://blogs.lse.ac.uk/businessreview/2026/02/03/are-jobs-getting-better-ai-has-the-potential-fo...
2•hhs•26m ago•0 comments

System time, clocks and their syncing in macOS

https://eclecticlight.co/2025/05/21/system-time-clocks-and-their-syncing-in-macos/
1•todsacerdoti•27m ago•0 comments

Science of Sharp

https://scienceofsharp.com/
1•volcano_diver•28m ago•0 comments

Show HN: LLM-use – Open-source tool to route and orchestrate multi-LLM tasks

1•justvugg•28m ago•0 comments

Chandra-OCR

https://github.com/datalab-to/chandra
2•Curiositry•31m ago•1 comments

Show HN: Web Cache Using Origin Private File System

https://github.com/P0u4a/opfs-cache
1•p0u4a•32m ago•0 comments

The Malleability of Tools: AI Is Eating UI

https://www.cjroth.com/blog/the-malleability-of-tools
1•thoughtfulchris•32m ago•0 comments

1972: How to commit Computer Fraud – 70s style [video]

https://www.youtube.com/watch?v=RHo3d_4d2SM
1•1659447091•36m ago•0 comments

Show HN: I built a directory of $1M+ in free credits for startups

https://startupperks.directory
3•osmansiddique•37m ago•0 comments

Do You Feel the AGI Yet?

https://www.theatlantic.com/technology/2026/02/do-you-feel-agi-yet/685845/
2•fortran77•38m ago•1 comments

Epstein arranged a meeting between highest-level Russian spy and Peter Thiel

https://bsky.app/profile/robertscotthorton.bsky.social/post/3me7vgg5rms27
10•doener•44m ago•0 comments

Waymo Gets Grilled by Lawmakers over Chinese Cars and Overseas Workers

https://www.businessinsider.com/waymo-grilled-lawmakers-chinese-cars-overseas-workers-ev-autonomo...
2•doener•48m ago•0 comments

The On-Line Encyclopedia of Integer Sequences (OEIS)

https://oeis.org
2•sonabinu•48m ago•0 comments

Replicating the Shadowglass 3D pixel-art technique

https://tesseractc.at/shadowglass
1•ChadNauseam•51m ago•0 comments

Writing an LLM from scratch, part 32d – Interventions: adding attention bias

https://www.gilesthomas.com/2026/02/llm-from-scratch-32d-interventions-adding-attention-bias
1•gpjt•52m ago•0 comments

Show HN: A Kubernetes Operator to Validate Jupyter Notebooks in MLOps

https://github.com/tosin2013/jupyter-notebook-validator-operator
2•takinosh•54m ago•0 comments

Resolving intervalley gaps and many-body resonances in moiré superconductors

https://www.nature.com/articles/s41586-025-10067-1
1•westurner•55m ago•3 comments