frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Pelican Collection – Simonw Pelican Bicycle Gallery (2024-2026)

https://pelican-model-gallery.alienfluid.chatgpt.site/
1•dv35z•1m ago•0 comments

Hot Chips 2026: Irrational Recap

https://irrationalanalysis.substack.com/p/hot-chips-2026-irrational-recap
1•akshayt•9m ago•0 comments

CobaltC Programming Language Specification

https://strawberry9.github.io/the-wrong-memory/Appendix_06.html
1•VolatileRegiste•10m ago•0 comments

Celebrating Kazakhstan's first wild-born Przewalski's horse in 200 years

https://www.fauna-flora.org/news/celebrating-kazakhstans-first-wild-born-przewalskis-horse-in-200...
3•thunderbong•15m ago•1 comments

MCP server for 340k SVG icons

https://github.com/LeulAria/Aria-Icons
3•leularia•21m ago•0 comments

Our Suggestion Box

https://medium.com/luminasticity/our-suggestion-box-247d754ae1ad
1•bryanrasmussen•21m ago•0 comments

Show HN: Slock – A one-bit messenger inside your capslock key

https://github.com/jonaraphael/slock
2•jonaraphael•27m ago•2 comments

Archival Resource Keys (ARKs) serve as persistent identifiers

https://arks.org/
1•Tomte•29m ago•0 comments

Reimagining projections for the interactive maps era (2021)

https://www.mapbox.com/blog/adaptive-projections
3•gherkinnn•34m ago•1 comments

Site Is Closed on Sundays

https://v7.robweychert.com/
5•edent•38m ago•0 comments

I built an interactive networking lab for learning network engineering

https://net-forge-kappa.vercel.app/
2•OmarAfnan•39m ago•0 comments

An advanced attacker is targeting Salesforce and ServiceNow instances worldwide

https://www.reco.ai/blog/city-forum-campaign-salesforce-servicenow
3•daretograsp•42m ago•0 comments

Show HN: Public message board for limited systems

https://anystation.net/
2•jonahss•45m ago•0 comments

Switzerland's invisible skyline: why Zug towers over the rest

https://prospex.ch/blog/switzerlands-invisible-skyline-companies-by-building/
1•theanonymousone•54m ago•0 comments

A Figma clone built by GPT-6 Astra

https://wieslawsoltes.github.io/Vellum/
5•aghuang•57m ago•5 comments

Ask HN: Do you route only certain websites through a VPN?

1•dennysora-main•59m ago•1 comments

The Structured Vacuum: Thinking about Nothing [pdf]

https://rafelski.com/~johann/Books/StructVacuumE.pdf
3•rramadass•1h ago•0 comments

Revealing a Hidden Class of Task-in-Prompt Adversarial Attacks on LLMs

https://aclanthology.org/2025.acl-long.334/
1•aghuang•1h ago•0 comments

Show HN: Rust and Box2D browser physics game – build destructive machines

https://v-yanakiev.itch.io/machina
2•v-yanakiev•1h ago•0 comments

MyNoise – Custom Soundscapes for Focus, Relaxation and Sleep

https://mynoise.net/index.php
1•pan69•1h ago•0 comments

interpretation to AI agents

https://ag3497120.github.io/call-me-vera/
1•pakupaku•1h ago•0 comments

Robot writes in languages it has never seen before

https://www.wired.com/story/robot-writing/
3•euanming•1h ago•0 comments

The biggest problem in buying AI compute is credit

https://twitter.com/gpugene/status/2096427973893411312
1•MrBuddyCasino•1h ago•0 comments

Anthropic IPO launch shifts toward mid-October

https://www.cnbc.com/2026/09/05/anthropic-ipo-launch-shifts-toward-mid-october-reuters.html
3•aghuang•1h ago•0 comments

Show HN: Assist (Voice Screenshot)

https://assistapp.dev
1•abhishekucs•1h ago•1 comments

TR-106

https://en.wikipedia.org/wiki/TR-106
2•num42•1h ago•0 comments

LA District Bans Most A.I. For Students

https://www.nytimes.com/2026/09/03/us/lausd-schools-ban-ai-artificial-intelligence.html
3•narenst•1h ago•1 comments

Greenland forces Trump's US oil firm to delay drilling

https://www.theguardian.com/world/2026/aug/12/trump-greenland-oil
8•Alien1Being•1h ago•0 comments

Consciousness, creativity andunderstanding not obstacles to machine intelligence

https://link.springer.com/article/10.1007/s11229-026-05655-1
4•klaustro•1h ago•0 comments

'Huge Breakthrough' in the Math of Imbalance

https://www.quantamagazine.org/huge-breakthrough-in-the-math-of-imbalance-20260821/
2•diazc•1h ago•0 comments
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).