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: AI-optimized x86-64 assembly vs. GCC -O3 on three production kernels

https://github.com/cleonard2341/ai-kernel-optimizer/blob/main/blog/ai-assembly-vs-gcc-o3.md
1•cod-e•13m ago•1 comments

Which past applications you built can be migrated to Agentic architecture?

1•sanatku•14m ago•0 comments

Over a million people rally worldwide in solidarity with Iran protests

https://www.iranintl.com/en/202602146821
1•ukblewis•16m ago•0 comments

Cynthia's Valentine (Sci-Fi)

https://stackdiver.com/posts/cynthias-valentine/
1•osmoscraft•17m ago•0 comments

How Investigators Find the Source of a Fire [video]

https://www.youtube.com/watch?v=1pPoB8be1G0
1•dataflow•18m ago•0 comments

As Complexity Grows, Architecture Dominates Material

https://worksonmymachine.ai/p/as-complexity-grows-architecture
1•thunderbong•20m ago•0 comments

Ex-Tech –> Homeless in SF

https://zamoshi.substack.com/p/ninety-four-degrees
2•Zamoshi•23m ago•0 comments

Help Recover Your Stolen Bitcoin – USA Intelligence Cyber Wizard

1•amymcomas•24m ago•0 comments

Show HN: LocalGPT Gen – LLM-driven world generation in Rust/Bevy [video]

https://www.youtube.com/watch?v=n18qnSDmBK0
1•yi_wang•28m ago•0 comments

Show HN: I built a 'Gym' for developers who want to stop relying on AI

https://get-human-spec.netlify.app/
2•sameerthite•36m ago•0 comments

Agentic Tech Magazine

https://agentcrunch.ai/
1•mikiarlo321•40m ago•0 comments

Use Microsoft Office Shortcuts in Libre Office

https://github.com/Zaki101Aslam/MS-office-shortcuts-for-Libre-Office
1•Zaki101Aslam•41m ago•1 comments

SmolMail – Stop typing what your emails know

https://smolmail.com/
1•narinluangrath•44m ago•1 comments

Is Your AI Agent Safe?

https://agentshield.live/
1•bartel_most•50m ago•1 comments

Switch instantly between your ego across ChatGPT, Claude, Gemini, Grok and local

https://context-wallet.com/
1•haebom•54m ago•0 comments

Show HN: AgentScore – Lighthouse for AI Agents

https://github.com/xiongallen40-design/agentscore
1•agentscore•58m ago•0 comments

Show HN: PlanOpticon – Extract structured knowledge from video recordings

https://github.com/ConflictHQ/PlanOpticon
1•ragelink•1h ago•0 comments

Discord Distances Itself from Peter Thiel's Palantir Age Verification Firm

https://kotaku.com/discord-palantir-peter-thiel-persona-age-verification-2000668951
6•thisislife2•1h ago•0 comments

Flashpoint Archive – Over 200k web games and animations preserved

https://flashpointarchive.org
9•helloplanets•1h ago•1 comments

The AGI gap might be epistemological, not technical

https://executelater.substack.com/p/we-dont-know-what-were-looking-for
3•NarratorTD•1h ago•1 comments

Show HN: Remote-OpenCode – Run your AI coding agent from your phone via Discord

https://github.com/RoundTable02/remote-opencode
1•remocode•1h ago•1 comments

Stop Saying Boredom Is Good for Kids

https://www.fast.ai/posts/2025-12-03-boredom/
2•tkazec•1h ago•0 comments

Understanding Std:Shared_mutex from C++17

https://www.cppstories.com/2026/shared_mutex/
2•jandeboevrie•1h ago•0 comments

I gave my AI drugs

https://github.com/nich2533/just_say_no
9•nich2533•1h ago•4 comments

America Isn't Ready for What AI Will Do to Jobs

https://www.theatlantic.com/magazine/2026/03/ai-economy-labor-market-transformation/685731/
15•helloplanets•1h ago•3 comments

Show HN: Bond – Persistent memory and governance framework for Claude AI

https://github.com/moneyjarrod/BOND
1•J-Dub•1h ago•1 comments

You do not need an ORM [video]

https://fosdem.org/2026/schedule/event/F9Y7ZY-you-do-not-need-an-orm/
2•0x54MUR41•1h ago•0 comments

Show HN: Nucleus MCP – Forensic deep-dive into agent resource locking

https://www.loom.com/share/843a719cbcc2419b8e483784ffd1e8c8
1•NucleusOS•1h ago•0 comments

Anime text-to-image generator (2 free tries, no login)

https://www.radanimegenerator.com/
1•changttt•2h ago•2 comments

Distillation, Experimentation, and Integration of AI for Adversarial Use

https://cloud.google.com/blog/topics/threat-intelligence/distillation-experimentation-integration...
2•nsoonhui•2h ago•0 comments