frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Hello

1•pranavgawas-pro•6m ago•0 comments

Act like it is science

https://marginalrevolution.com/marginalrevolution/2026/08/act-like-it-is-science.html
1•thedreammachine•11m ago•0 comments

md-whispr

https://twitter.com/stanlalanne/status/2086675864276566196
1•sharpshootersl•14m ago•1 comments

AI Coding Clients Are Reading Each Other's Personal Instructions

https://runtimewire.com/article/ai-coding-clients-are-reading-each-other-s-personal-instructions
1•ryanmerket•16m ago•0 comments

Copy-paste email templates for chasing overdue invoices

https://invoice-email-template.surge.sh/
1•lmv_builds•22m ago•0 comments

Take-home assessments to be banned in school AI overhaul

https://www.smh.com.au/national/nsw/take-home-assessments-to-be-banned-in-radical-hsc-overhaul-20...
1•Alien1Being•22m ago•0 comments

HCCL: Collective Communication for Meta Training and Inference Accelerators

https://arxiv.org/abs/2608.00358
1•matt_d•23m ago•0 comments

Migrate from GitHub Container Registry (GHCR) to Vercel Container Registry (VCR)

https://vercel.com/kb/guide/migrate-ghcr-to-vcr
1•flashbrew•23m ago•0 comments

Docker Compose concepts map to Vercel

https://vercel.com/kb/guide/docker-compose-concepts-on-vercel
1•flashbrew•23m ago•0 comments

Training neural nets on Apple Neural Engine via reverse-engineered private APIs

https://github.com/maderix/ANE
1•dyzone•28m ago•0 comments

Show HN: Blueferry, iMessage on Linux

https://github.com/erikwb/blueferry
2•erikwb•29m ago•0 comments

The Philippines' big offshoring industry is growing despite AI

https://www.economist.com/asia/2026/08/06/the-philippines-big-offshoring-industry-is-growing-desp...
2•nlpnerd•30m ago•1 comments

A second-hand bookstore's mysterious orders

https://www.rnz.co.nz/life/books/wellington-second-hand-book-store-s-mysterious-orders
2•tigerlily•32m ago•0 comments

The Rise of the Unstoppable American Tourist

https://www.wsj.com/economy/the-rise-of-the-unstoppable-american-tourist-485f025b
1•thm•35m ago•0 comments

How do programming languages impact token efficiency and correctness?

https://danluu.com/pl-tokens/
1•matt_d•38m ago•0 comments

As AI grips world, the thrill of collecting vintage computers is growing

https://apnews.com/article/vintage-computers-silicon-valley-technology-apple-history-43d28a08d77c...
2•geox•43m ago•0 comments

Ask HN: TS Compiler

3•apple_george•47m ago•0 comments

Trellis – A Workspace Management Tool for Multi-Package Gleam Projects

https://github.com/tylerbutler/trellis
3•TheWiggles•49m ago•0 comments

Spy cameras on Navy drones sent data to China

https://www.telegraph.co.uk/news/2026/08/09/spy-cameras-on-navy-drones-secretly-sent-data-to-chin...
3•NewCzech•52m ago•0 comments

New AI models still reproduce racial and gender stereotypes in medicine

https://news.flinders.edu.au/blog/2026/08/09/new-ai-models-still-reproduce-racial-and-gender-ster...
3•giuliomagnifico•53m ago•1 comments

Harry Potter fans force diversion of power link to avoid 'Dobby's grave'

https://www.bbc.com/news/articles/cy8mgpl27dpo
2•pibaker•56m ago•0 comments

Ask HN: Is this normal HN ranking?

2•unclebucknasty•58m ago•1 comments

Long-Run Effects of H-1B Immigration on the U.S. Economy (July 2026)

https://www.nber.org/papers/w35560
23•ryzvonusef•59m ago•3 comments

Daily global sea surface temperatures break records for the time of year

https://climate.copernicus.eu/copernicus-marine-and-copernicus-climate-change-daily-global-sea-su...
3•jacquesm•1h ago•0 comments

Horolog – a self-hosted, open-source alternative to Reclaim.ai

https://github.com/ujjwalredd/horolog
2•ujjwalreddyks•1h ago•0 comments

Auto mode is now the default in Claude Code

https://claude.com/blog/auto-mode-default-in-claude-code
46•sbehere•1h ago•7 comments

DisplayWave: A simple and free tool for Mac external monitor control

https://github.com/kah-ve/DisplayWave
2•warpbin•1h ago•1 comments

Negative-Interest Tech Debt

https://jesseduffield.com/Negative-interest-tech-debt/
2•Tomte•1h ago•0 comments

FieldFleet – a self-hostable field operations platform

https://taskfleetai.github.io/fieldfleet/
2•iguardo•1h ago•0 comments

Storm of Seth

https://www.storm-of-seth2.tw/
2•haolll•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).