frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

GitHub has another tough day

https://surfingcomplexity.blog/2026/08/13/github-has-another-tough-day/
1•azhenley•33s ago•0 comments

Do Apple's green text bubbles have a contrast problem?

https://colorschemer.com/color-theory-course/utilizing-wcag-to-improve-text-readability-and-contrast
2•maxsavin•3m ago•0 comments

A Walkable ASCII Cyberpunk City in One HTML File [video]

https://www.youtube.com/watch?v=3YtygAx_C6A
1•reader9274•4m ago•0 comments

German Tank Problem

https://en.wikipedia.org/wiki/German_tank_problem
1•jxmorris12•4m ago•0 comments

Show HN: Control Claude Code, Codex, Pi and Gemini CLI from Telegram

https://github.com/choiyounggi/cliclaw
2•dch0202•10m ago•0 comments

A digestion of the proof of Sendov's conjecture

https://terrytao.wordpress.com/2026/08/12/a-digestion-of-the-proof-of-sendovs-conjecture/
1•surprisetalk•13m ago•0 comments

An Infinite Waltz – A Must Read (Docu-Video Audio/ Visual Adaptation Included)

https://iamwisdom.substack.com/p/an-infinite-waltz-the-dance-beyond
1•I_Am_Wisdom•18m ago•0 comments

The great silence: why haven't we found any aliens yet?

https://www.theguardian.com/news/2026/aug/11/the-great-silence-why-havent-we-found-any-aliens-yet
1•thm•18m ago•0 comments

Show HN: VeerHost – $1/month web hosting, limited spots

https://veerhost.com/1-dollar-web-hosting/
5•betterornotss•20m ago•0 comments

Phoebe Gates' startup Phia faces cookie stuffing allegations

https://www.bloomberg.com/news/articles/2026-08-11/phia-app-co-founders-pushed-for-features-takin...
1•saeranv•21m ago•0 comments

Show HN: Journal, Interstitial Journaling

https://journal.lasagna.pizza/
1•kinduff•23m ago•0 comments

Show HN: Lexicon AI – Exam-focused vocabulary journal for SAT and IELTS prep

https://lexicon-ai-journal.vercel.app/
1•wayne_14e•24m ago•0 comments

How to Look the Sky in the Face

https://www.raptitude.com/2026/08/how-to-look-the-sky-in-the-face/
1•inatreecrown2•25m ago•0 comments

Trump order lets US firms hack overseas groups under certain conditions

https://www.cnn.com/2026/08/13/politics/cyber-privateers-trump-order-overseas-groups-hacking
5•freditup•29m ago•0 comments

Apple trains its own AI model for China market with Alibaba's support

https://www.reuters.com/business/retail-consumer/apple-trains-its-own-ai-model-china-market-with-...
4•petethomas•29m ago•0 comments

RegExp /V in JavaScript: Sets, Intersections, and Unicode

https://www.jstools.space/blog/regexp-in-javascript/
1•javatuts•30m ago•0 comments

Trump's Gift to the Money Launderers

https://www.thebulwark.com/p/trumps-gift-to-the-money-launderers-database-treasury
3•computerliker•31m ago•0 comments

FieldRobin – AI-native field service software for small service businesses

https://fieldrobin.com
1•pdgrg•33m ago•0 comments

Counterstrike 1969 TV Series

https://archive.org/details/counterstrike-1969-tv-series
2•petethomas•38m ago•0 comments

Trump orders aircraft carrier redesign to use steam catapults to launch jets

https://www.theguardian.com/us-news/2026/aug/13/trump-aircraft-carriers-steam-catapults
5•decimalenough•38m ago•0 comments

Users of psychedelics narratively turn bad trips into valuable experiences

https://www.sciencedirect.com/science/article/pii/S0955395920303352#bib0056
4•MrJagil•41m ago•0 comments

The Making of Cursor's Icons

https://www.minoradventures.co/blog/the-making-of-cursors-icons
1•duck•43m ago•0 comments

Definium says LSD-based pill reduces anxiety in late-stage study

https://www.reuters.com/business/healthcare-pharmaceuticals/definium-says-lsd-based-pill-reduces-...
3•oliverulerich•43m ago•0 comments

Cicada.os, Graphene.os for Your Laptop

https://kpres12.github.io/Cicada.OS/
1•kpres62•48m ago•1 comments

How Claude's watermarking (probably) works

https://johnjwang.com/post/2026/08/12/how-claude-watermarking-probably-works/
2•882542F3884314B•52m ago•0 comments

Infodump about Monkey Island

https://pants.fishing
2•dmarinus•53m ago•0 comments

User reports show problems with LinkedIn

https://downdetector.com.au/status/linkedin/
1•hahahaa•54m ago•0 comments

Border blaster

https://en.wikipedia.org/wiki/Border_blaster
9•petethomas•1h ago•0 comments

Programing language faster than Python for ML (Jaithon 3.1)

https://github.com/abhiramasonny/jaithon
1•AbhiramaVS•1h ago•2 comments

Elon Musk is suing California over an AI law. Here's why transparency matters

https://www.sfchronicle.com/opinion/openforum/article/ai-data-law-california-22382698.php
5•newsomix9xl•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).