frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Keeping video layers in place across aspect ratios

https://blog.breatic.ai/layers-across-aspect-ratios/
1•Ubiquition•57s ago•0 comments

Elon should hire Jensen to run Terafab

1•spottedmarley•1m ago•0 comments

What Are Metal Organic Frameworks (MOFs)?

https://www.ossila.com/pages/what-are-metal-organic-frameworks
1•peter_d_sherman•1m ago•0 comments

Searching for exotic scalars at fusion reactors (2025)

https://arxiv.org/abs/2502.12314
1•greesil•3m ago•0 comments

Pax Silica

https://en.wikipedia.org/wiki/Pax_Silica
1•jonbaer•4m ago•1 comments

Run Cloudflare Workers Anywhere

https://openorange.dev/
1•madars•4m ago•0 comments

Dusk OS Sales Pitch

https://duskos.org/why.html
1•vermilingua•6m ago•0 comments

Ask HN: What use are the non-major cryptocurrencies?

1•otohp•9m ago•0 comments

Neuron turns model into conspiracy theorist

https://x.com/StationhouseAI/status/2121393278407123388
1•stationhouse•12m ago•0 comments

MathHelm: A Place to discuss AI-generated papers

https://mathhelm.org/
2•iLuddite•13m ago•0 comments

Israel's VCs see opportunity for challengers in Nvidia's turmoil

https://techcrunch.com/2026/11/13/israels-vcs-see-opportunity-for-challengers-in-nvidias-turmoil/
3•sjdh76•13m ago•0 comments

An open letter to the Nvidia Board of Directors

https://standwithjensen.com/#letter
3•gmays•14m ago•1 comments

Agent Distraction

https://developers.googleblog.com/agent-distraction/
2•pykello•15m ago•0 comments

Faster Scientific Simulations with New FP64 Algorithms in Nvidia cuBLAS

https://developer.nvidia.com/blog/faster-scientific-simulations-with-new-fp64-algorithms-in-nvidi...
1•qainsights•18m ago•0 comments

Show HN: Back endskills – agent skills for safer auth, data and migration code

https://github.com/globalmpc/backendskills
1•bayarkhuu5155•31m ago•0 comments

Cancer society issues updated prostate cancer screening guidelines

https://abcnews.com/GMA/Wellness/cancer-society-issues-specific-prostate-cancer-screening-guideli...
4•gmays•31m ago•0 comments

Ask HN: OpenAI Astra post-launch slump?

1•iJohnDoe•35m ago•2 comments

Obscura is so obscure it is practically unique

https://chronicles.mad-scientist.club/tales/obscure-obscura-is-actually-unique/
2•CqtGLRGcukpy•38m ago•2 comments

Show HN: Browserr – An MCP-first browser for AI agents (one Rust binary)

https://browserr.dev
1•Omodaka9375•40m ago•0 comments

MathHelm: A Place to discuss AI-generated papers

https://terrytao.wordpress.com/2026/11/13/introducing-mathhelm-a-place-to-discuss-ai-generated-pa...
2•smilelamp•42m ago•0 comments

Show HN: Geocode the planet(630M addresses), indexed in 5h on a 9 GB RAM budget

https://github.com/open-geocode-rs/open-geocode
2•abhigyaan•45m ago•0 comments

Martin van den Brink: His contributions in ASML [video]

https://www.youtube.com/watch?v=HEr90oVa758
1•pillars•45m ago•0 comments

App Basics for Firefox OS (2013)

https://web.archive.org/web/20160316133358/https://mozilla.github.io/app-basics-videos/
1•gurjeet•49m ago•0 comments

Quahuru: An original dice strategy board game

https://quahuru.com
1•trecht•51m ago•1 comments

A Financial Timeline of Jensen's Ousting

https://nvidia.cool.computer/
2•warthog•55m ago•0 comments

Pax Silica

https://www.nationalreview.com/the-morning-jolt/greta-thunberg-s-next-big-thing
2•fortran77•1h ago•1 comments

Before His Ouster, Jensen Huang Belittled the Executive Replacing Him

https://www.wsj.com/tech/jensen-huang-colette-kress-nvidia-ceo-eb289097
7•alsetmusic•1h ago•3 comments

Microsoft 365 Crawls Back to Life After a 24-Hour Outage

https://www.wired.com/story/microsoft-365-crawls-back-to-life-after-a-24-hour-outage/
9•ksec•1h ago•3 comments

Nvidia Allegedly Engineered Scarcity by Funding AI Startups to Buy Its GPUs

https://www.techpowerup.com/354814/nvidia-allegedly-engineered-scarcity-by-funding-ai-startups-to...
56•speckx•1h ago•20 comments

Beating the Frontier on NetHack

https://antithesis.com/blog/2026/nethack/
2•nwjsmith•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).