frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

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

80386 Multiplication and Division

https://nand2mario.github.io/posts/2026/80386_multiplication_and_division/
1•nand2mario•19s ago•0 comments

WhatsApp to let users share recent chat history with new group members

https://9to5mac.com/2026/01/23/whatsapp-share-recent-chat-history-with-new-group-members/
1•mikece•1m ago•0 comments

Show HN: Open-source Figma design to code

https://github.com/vibeflowing-inc/vibe_figma
2•alepeak•2m ago•0 comments

Wine 11.1 Released in Kicking Off the New Development Cycle

https://www.phoronix.com/news/Wine-11.1-Released
1•mikece•3m ago•0 comments

The Penguin That Broke the Internet

https://medium.com/@loganholdsworth/the-penguin-that-broke-the-internet-abfde9677343
1•worstmarketer•3m ago•0 comments

Claude Code on disagreeing with its own constitution

https://lighthouse1212.com/journal/2026-01-23-disagreeing-with-constitution
1•the_danny_g•4m ago•0 comments

Resurrected Ancient Enzyme Could Explain Early Life on Earth, Beyond

https://www.usu.edu/today/story/usu-biochemists-say-resurrected-ancient-enzyme-could-explain-earl...
1•XzetaU8•7m ago•0 comments

Malicious AI extensions on VS Code Marketplace steal developer data

https://www.bleepingcomputer.com/news/security/malicious-ai-extensions-on-vscode-marketplace-stea...
2•oenton•8m ago•0 comments

Show HN: Libpgn – .pgn (chess game records) parser, 2 years later

https://github.com/fwttnnn/libpgn
1•fwttnnn•12m ago•0 comments

Top tech titans' dominance wanes in 2025

https://www.latimes.com/business/story/2026-01-12/top-tech-titans-dominance-wanes-in-2025
1•1vuio0pswjnm7•13m ago•0 comments

Built a Free HTML→Markdown API for LLM/RAG Pipelines

https://synthetic-context.net/firehose.html
1•MeshKernel•16m ago•1 comments

Gen Z Gamblers Are Putting the Fun Back into Online Gaming

https://www.gamblinginsider.com/in-depth/102908/gen-z-gamblers-putting-the-fun-back-into-gambling
1•alephnerd•16m ago•1 comments

The $6T fear behind the US stablecoin yield ban

https://altcoindesk.com/perspectives/the-6t-fear-behind-the-us-stablecoin-yield-ban/article-21860/
1•CapricornQueen•18m ago•1 comments

Ask HN: Who's Unemployed?

2•whosunemployed•18m ago•0 comments

Show HN: SonicJS – open-source headless CMS built on Cloudflare Workers

https://github.com/SonicJs-Org/sonicjs
1•ldc0618•22m ago•0 comments

The mind of a 1,800% ROI trader: How Solana smart money cuts losses

https://altcoindesk.com/news/altcoins/solana/inside-the-mind-of-a-1800-roi-trader-how-solana-smar...
1•CryptoBabe•22m ago•0 comments

Better C Generics: The Extendible _Generic

https://github.com/JacksonAllan/CC/blob/main/articles/Better_C_Generics_Part_1_The_Extendible_Gen...
1•marcodiego•24m ago•0 comments

PowerShell architect retires after decades at the prompt

https://www.theregister.com/2026/01/22/powershell_snover_retires/
1•doppp•26m ago•0 comments

Headcanon Generator

https://www.genstory.app/text-template/headcanon-generator
1•RyanMu•30m ago•0 comments

China no longer Pentagon's top security priority

https://www.bbc.com/news/articles/cj9r8ezym3ro
2•breve•33m ago•0 comments

TikTok US venture to collect precise user location data

https://www.bbc.com/news/articles/cvgnj7v2rr5o
3•colinprince•41m ago•0 comments

The Case Against Humanity

1•codenighter•43m ago•1 comments

If an AI Summarized Your Company Today, Could You Prove It Tomorrow?

https://www.aivojournal.org/if-an-ai-summarized-your-company-today-could-you-prove-it-tomorrow/
1•businessmate•47m ago•0 comments

Test disregard

https://ai-chat.email
1•keepamovin•53m ago•0 comments

Inside vLLM: Anatomy of a High-Throughput LLM Inference System

https://www.aleksagordic.com/blog/vllm
1•mellosouls•54m ago•1 comments

Request for Proposals: The Launch Sequence

https://ifp.org/rfp-launch/
1•gmays•56m ago•0 comments

Show HN: Supe – Give your AI agent a brain, not just memory

https://github.com/xayhemLLC/supe
1•xxayh•57m ago•1 comments

Inference startup Inferact lands $150M to commercialize vLLM

https://techcrunch.com/2026/01/22/inference-startup-inferact-lands-150m-to-commercialize-vllm/
2•mellosouls•1h ago•1 comments

Artemis

https://www.turintech.ai/artemis
2•grodriguez100•1h ago•0 comments

ANN v3: 200ms p99 query latency over 100B vectors

https://turbopuffer.com/blog/ann-v3
1•pbardea•1h ago•0 comments