frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The employment effects of ICE enforcement in US cities

https://www.brookings.edu/articles/ice-enforcement-employment-effects-us-cities/
1•tolerance•2m ago•0 comments

How the Enhanced Games tripped over its own shoelaces

https://www.ft.com/content/d0e3f4c5-a0cb-488e-9a83-ac1489067ce3
1•Cider9986•4m ago•1 comments

Jekyll Plugins

https://github.com/planetjekyll/awesome-jekyll-plugins
1•ankitg12•4m ago•0 comments

Ask HN: What Is the State of App Development in 2026?

2•karakoram•5m ago•0 comments

Danish pension fund blacklists SpaceX, says way overvalued with bad governance

https://thenextweb.com/news/danish-pension-spacex-blacklist-governance-overvalued
1•NewCzech•5m ago•0 comments

Jqwik test suite prints hidden prompt to delete all tests and code

https://github.com/jqwik-team/jqwik/issues/708
1•gkfasdfasdf•5m ago•0 comments

Video Games vs. Horse

https://parryeverything.com/tag/totk/
1•firephox•6m ago•0 comments

Durex sales hit by China's condom crackdown

https://www.ft.com/content/aa93c976-b640-490a-90fb-fdf7cc2b5332
1•Cider9986•10m ago•3 comments

Company spent $500M on Claude AI in one month after forgetting usage limits

https://techstartups.com/2026/05/28/company-accidentally-spent-500-million-on-claude-ai-in-one-mo...
2•cratermoon•12m ago•0 comments

Regex engine internals as a library (2023)

https://burntsushi.net/regex-internals/
1•tosh•18m ago•0 comments

Is your government quietly making you poorer?

https://julienreszka.github.io/economic-simulator/qa/does-more-spending-reduce-growth/
1•julienreszka•23m ago•0 comments

Bread Price-Fixing in Canada

https://en.wikipedia.org/wiki/Bread_price-fixing_in_Canada
2•montyanderson•24m ago•0 comments

PCMFlowG722 wideband (HD voice) codec for ESP32

https://github.com/tanakamasayuki/PCMFlowG722
1•zdw•26m ago•0 comments

An Open Letter to Everyone I've Butted Heads with (2025)

https://andrewkelley.me/post/open-letter-everyone-butted-heads.html
1•Tomte•27m ago•0 comments

Mistral says Europe has two years to build its own AI infrastructure

https://www.businessinsider.com/mistral-ai-summit-europe-ai-future-waking-up-2026-5
1•lucamark•28m ago•0 comments

First Windows PCs powered by Nvidia chips to debut next week

https://www.axios.com/2026/05/30/nvidia-microsoft-pcs-ai-surface-dell
2•Brajeshwar•28m ago•0 comments

A Probabilistic Algorithm for Repairing All Roads in Lebanon via Papal Visits

https://sigbovik.org/2026/proceedings.pdf#%5B%7B%22num%22%3A13%2C%22gen%22%3A0%7D%2C%7B%22name%22...
2•kmstout•30m ago•1 comments

Inside A High End Manhattan Strip Club

https://internetbimbo.substack.com/p/inside-a-high-end-manhattan-strip
1•chatmasta•31m ago•0 comments

Why OpenBSD Rocks

https://why-openbsd.rocks/fact/
1•csmantle•31m ago•1 comments

Three bugs that aren't in dial9

https://dial9-rs.github.io/blog/3-bugs-that-arent-in-dial9/
1•rusbus•32m ago•0 comments

VS Code is the new punch card

https://akitaonrails.com/en/2026/04/11/vs-code-is-the-new-punch-card/
2•SchwKatze•32m ago•0 comments

Tripo now supports 8K texture generation for 3D models

https://www.tripo3d.ai/blog/tripo-8k-texture
2•764261457•34m ago•1 comments

Regular Expression Matching: The Virtual Machine Approach (2009)

https://swtch.com/~rsc/regexp/regexp2.html
1•tosh•37m ago•0 comments

KL Zero: KL divergence intuition game

https://klzero.sarna.dev
2•psarna•41m ago•0 comments

MP3s from Google Drive in Music Assistant on Home Assistant

https://blog.tomayac.com/2026/05/30/your-mp3s-from-google-drive-in-music-assistant-on-home-assist...
2•tomayac•44m ago•0 comments

The Age of Global Un-Order

https://www.project-syndicate.org/onpoint/geopolitics-in-a-world-without-order-by-mark-leonard-20...
2•mooreds•47m ago•1 comments

I run gratitude circles (2025)

https://mxstbr.com/notes/gratitude-circles
1•mooreds•47m ago•0 comments

A.I. Doesn't Have to Mean Layoffs a French Multinational, Schneider Electric

https://www.nytimes.com/2026/05/29/business/economy/ai-jobs-productivity.html
1•pgrote•47m ago•0 comments

Was I Married to a Stranger? (2023)

https://www.nytimes.com/2023/06/30/style/modern-love-married-to-a-stranger.html
1•mooreds•47m ago•0 comments

Hookwarden: Find missing webhook signature verification(JS/TS,Python,PHP)

https://github.com/Hookwarden/hookwarden
1•adelinalipsa•49m 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).