frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

School is Not Enough (2024)

https://map.simonsarris.com/p/school-is-not-enough
1•Brajeshwar•1m ago•0 comments

Ask HN: Why are US tech workers so pro open borders?

1•TorontoTheGood•1m ago•0 comments

Cryptographic Right Answers: Post-Quantum Edition

https://kerkour.com/post-quantum-cryptography-recommendations-rust
1•cold_pizz4•2m ago•0 comments

Agentic coding makes strict static analysis non-negotiable

https://pocketarc.com/articles/hardcore-phpstan
1•speckx•2m ago•0 comments

Show HN: Hanky – ETL style framework for loading flash cards into Anki

https://github.com/Haeata-Ash/hanky
1•funfruit•3m ago•0 comments

Prompt Caching in Agents

https://earendil.com/posts/prompt-caching/
1•elffjs•3m ago•0 comments

Tesla misses on earnings, as free cash flow turns negative and margins slide

https://www.cnbc.com/2026/07/22/tesla-tsla-q2-2026-earnings-report.html
2•1vuio0pswjnm7•3m ago•0 comments

Claude Code built-in task tools disabled server-side

https://github.com/anthropics/claude-code/issues/80401
1•Fabricio20•3m ago•1 comments

VarAC. HF/FM/SAT Digital Chat Reinvented

https://www.varac-hamradio.com
1•mooreds•3m ago•0 comments

Brow6el: A full-featured web browser for the terminal using Chromium

https://tangled.org/janantos.tngl.sh/brow6el
1•nerdypepper•3m ago•0 comments

DARPA, U.S. Air Force fly AI-controlled F-16

https://www.darpa.mil/news/2026/darpa-us-air-force-fly-ai-controlled-f-16
1•r2sk5t•7m ago•0 comments

Types of Tornado Alert

https://xkcd.com/3267/
1•mooreds•7m ago•0 comments

Dally – A little every day adds up

https://mctools.site
7•totaldude87•9m ago•0 comments

Private healthcare makes industries less innovative. It's time for change

https://werd.io/private-healthcare-makes-industries-less-innovative-its-time-for-change/
2•benwerd•9m ago•0 comments

What happens when the information runs out

https://blog.jimgrey.net/2026/06/30/what-happens-when-the-information-runs-out/
2•mooreds•9m ago•0 comments

I Believe in Files

https://gregwolanski.com/files/
2•speckx•10m ago•0 comments

Realising that Hermes is useless bloat

https://www.reddit.com/r/hermesagent/s/rLWoBEtg7W
1•mwham•12m ago•1 comments

Ford Will Use Apple Software in New Self-Driving System

https://www.nytimes.com/2026/07/23/business/ford-apple-software-self-driving.html
1•donohoe•13m ago•0 comments

AI in Linux

https://drewdevault.com/blog/AI-in-Linux/
2•LaSombra•13m ago•0 comments

Show HN: VibeSchema – database schema visualizer with version diffing

https://vibe-schema.com/schema-tool
1•SsgMshdPotatoes•13m ago•1 comments

Show HN: Rendi, an agent harness on Trigger.dev without spinning up a VM

https://github.com/mcheemaa/rendi
1•mcheemaa•14m ago•0 comments

Tesla falls 10%, Alphabet sinks 5% as AI spending concerns spook investors

https://www.cnbc.com/2026/07/23/tesla-tsla-alphabet-googl-stock-today.html
3•1vuio0pswjnm7•14m ago•0 comments

AI-Native FDE for the RNC

https://rnc.dev/
1•arionhardison•15m ago•1 comments

Show HN: USB AI Agent – portable uncensored AI with 13 tools, runs from USB

https://github.com/pusucip25/USB-AI-Agent
1•pucucip•15m ago•1 comments

Alphabet and Tesla test Wall Street's patience as AI spending overshadows growth

https://www.cnbc.com/2026/07/22/alphabet-tesla-test-investor-patience-ai-spending-overshadows-gro...
2•1vuio0pswjnm7•15m ago•0 comments

"I would prefer a world of rapid RSI and human disempowerment"

https://twitter.com/zetalyrae/status/2080082327133421575
2•themgt•16m ago•1 comments

Japanese Parody Religion Exists Only to Give Believers a Reason to Say 'No'

https://www.odditycentral.com/news/japanese-parody-religion-exists-only-to-give-believers-a-reaso...
1•speckx•16m ago•0 comments

Fixing a bug with byte order marks

https://alexwlchan.net/2026/byte-order-marks/
1•surprisetalk•17m ago•0 comments

The Daily Solargraph

https://eagereyes.org/app/daily-solargraph
2•petethomas•18m ago•1 comments

Why models write slop: the environments are too small

https://henriquegodoy.com/blog/why-models-write-slop
1•henriquegodoy•19m 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).