frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•1y 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•1y 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•1y 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: Run your agents across E2B, Daytona and more. steer them from anywhere

https://github.com/jaygupta17/otto
1•gupta_jay17•1m ago•0 comments

Round of New Domain Endings

https://kgolubic.com/posts/the-2026-new-gtld-round/
1•taubek•3m ago•0 comments

Is there anyone to promote my extension? It has 17 useful features

https://chromewebstore.google.com/detail/digital-shield-tab-suspen/pkonihncnkmbejhhjadaognganhinnhc
1•digitaShida•5m ago•1 comments

Skgate – the MCP hub that just works

https://github.com/helv-io/skgate
1•helvio88•5m ago•1 comments

The relationship between anger and creative performance

https://www.tandfonline.com/doi/full/10.1080/02699931.2024.2392614
2•nreece•5m ago•0 comments

History

1•ArthurFischerp•8m ago•0 comments

Rendering JSX without a browser by embedding Node.js in a native program

https://www.forbear.dev/log/003-ui-from-javascript.html
1•Gabrielmfern•9m ago•1 comments

Show HN: Settings-TUI – Lightweight Linux Settings Center in Rust

https://github.com/ziuus/settings-tui
1•noelyt101•9m ago•0 comments

"Rogue agents find a way out": AI communes with evil.com after bypassing sandbox

https://www.machine.news/rogue-agents-will-always-find-a-way-out-ai-communes-with-evil-com-after-...
1•LargeLingoMod•11m ago•0 comments

Pi Pocket: Mobile-First Web App for Pi Durable Agents

https://github.com/TannerMidd/pi-pocket
1•jwarden•12m ago•0 comments

Show HN: Deep Recall – portable memory you own for Claude, ChatGPT and agents

https://getdeeprecall.com/
1•nechmads•12m ago•0 comments

Show HN: Acceptodds a Prediction Market for Research

https://acceptodds.com
1•armstrongb•13m ago•0 comments

Which Experts Should You Trust on AI Doom?

https://www.richardhanania.com/p/which-experts-should-you-trust-on
1•paulpauper•15m ago•0 comments

FIFA World Cup 2030: Netflix Scores Exclusive Broadcast Rights in Spain and Ando

https://www.netflix.com/tudum/articles/fifa-world-cup-2030-watch-live-netflix
1•absqueued•16m ago•1 comments

A Great Nobel

https://www.grumpy-economist.com/p/a-great-nobel
1•paulpauper•18m ago•0 comments

Show HN: Forkcast, a meal planner and tracker with focus on weekly planning

https://check-forkcast.tizzy.dev/
1•tizzyapunkt•18m ago•0 comments

Are we going to kill each other due to AI?

https://ramblings.gtpware.eu/2026/10/12/are-we-going-to-kill-each-other-due-to-ai/
2•GTP•20m ago•0 comments

Handwritten Records Reveal Scale of Warming in the Congo

https://e360.yale.edu/digest/congo-climate-records
1•Brajeshwar•20m ago•0 comments

Wikipedians Believed AI Would Come and Go. They Were Wrong

https://www.wired.com/story/book-excerpt-the-last-best-place-on-the-internet-wikipedia-artificial...
2•Brajeshwar•21m ago•0 comments

One short prompt can burn all of your tokens

https://hackstery.com/2026/10/13/meta-metadata-unbounded-consumption-in-llms/
1•mik0w•21m ago•0 comments

Major cities worldwide are sinking, satellite data reveal

https://phys.org/news/2026-10-major-cities-worldwide-satellite-reveal.html
1•geox•23m ago•0 comments

Show HN: Spotatui, a Spotify TUI/GUI without web API rate limits

https://github.com/LargeModGames/spotatui
2•LargeModGames•24m ago•0 comments

"I'm a Former British Diplomat. Why Did My Own Gov't Detain Me?"

https://responsiblestatecraft.org/russia-uk-free-speech/
2•SanjayMehta•25m ago•0 comments

Command line arguments anatomy explained

https://betterdev.blog/command-line-arguments-anatomy-explained/
2•ankitg12•28m ago•0 comments

Speculative tool calling: cutting voice AI agent latency

https://tazolabs.com/blog/speculative-tool-calling-voice-ai
3•sks_15•28m ago•2 comments

An hour of audio transcribed in about 13s on MacBook Air

https://eg2.haku.sh/
32•amrrs•29m ago•8 comments

Desoxyn: The only prescription methamphetamine in the US

https://zkrhass.com/writing/desoxyn
1•zkrhass_•31m ago•0 comments

Character.ai Files for Bankruptcy

https://www.theverge.com/ai-artificial-intelligence/1009802/character-ai-files-for-bankruptcy-disney
13•yanis_t•32m ago•7 comments

Tokyo has lost 84% of its public baths since 1968. The rest are getting busier

https://jivx.com/sento
1•momentmaker•33m ago•0 comments

How far can $1k take you when training an agentic LLM from scratch?

https://www.nanoswe.com/blog.html
1•nvtop•33m ago•1 comments