frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

ASD Has Handed Australian and New Zealand Boards 16 Questions on Frontier AI

https://insiconcyber.com/blog/asd-frontier-ai-board-considerations
1•insicon_cyber•3m ago•0 comments

OpenAI launches GPT-5.6-Cyber – 95% completion on advanced cybersecurity tasks

https://venturebeat.com/technology/openai-launches-gpt-5-6-cyber-with-reduced-refusals-95-complet...
1•ashurandi•5m ago•0 comments

LLMs and Xfwl4

https://www.spurint.org/journal/2026/07/llms-and-xfwl4
1•LaSombra•6m ago•0 comments

SB116 Programmers Calculator

https://unimplementedtrap.com/sb116-programmers-calculator/
1•jandeboevrie•12m ago•0 comments

IsThisBS?

https://isthisbs.org/
3•yanko•14m ago•0 comments

What Design Engineers Earn in Europe: Results from a Survey of 106

https://hymera.co/research-design-engineer-salary-europe
4•ablazevics•20m ago•2 comments

Moving integer division to floating-point is trivial

http://marc-b-reynolds.github.io/math/2026/08/10/IntDivByFP.html
3•matt_d•22m ago•0 comments

Peter Steinberger: "Fun Is Velocity" [video]

https://www.youtube.com/watch?v=whcfSGN6CAU
3•tosh•23m ago•0 comments

Half of Europe's towns and villages have fewer residents than 60 years ago

https://correctiv.org/en/europe/2026/04/21/half-of-europes-towns-and-villages-have-fewer-resident...
12•Pamar•24m ago•2 comments

OLM to PST Converter

https://www.perfectdatasolutions.com/en/olm/olm-to-pst-converter.html
2•tieanderson•28m ago•0 comments

The AI threat to India's IT jobs machine

https://www.ft.com/content/dee4bd2c-fbad-4713-9b14-22d441967ce4
2•JumpCrisscross•28m ago•0 comments

OpenAI wraps $7B share sale ahead of potential IPO

https://www.cnbc.com/2026/08/10/openai-wraps-7-billion-share-sale-ahead-of-potential-ipo-.html
5•kristianp•30m ago•0 comments

France Bans Unsolicited Telemarketing Calls

https://www.nytimes.com/2026/08/11/world/europe/france-ban-unsolicited-telemarketing-calls.html
8•JumpCrisscross•34m ago•0 comments

New Features in Python 3.15

https://www.infoworld.com/article/4166693/the-best-new-features-in-python-3-15.html
3•theanonymousone•36m ago•0 comments

MP3 piracy was born August 10, 1996

https://dfarq.homeip.net/the-first-pirated-mp3/
2•giuliomagnifico•40m ago•0 comments

DeepSeek: Reverse Engineering an AI Assistant by Interviewing Itself

https://manish.sh/writings/models/inside-deepseek-reverse-engineering-an-ai-assistant-by-intervie...
9•ms7892•40m ago•1 comments

Trump Said to Have Used Military Jet to Leave Turkey Amid Threats

https://www.nytimes.com/2026/08/10/us/politics/trump-plane-ruse.html
2•blltprfmnk•43m ago•0 comments

Show HN: Mcptoon – MCP CLI client that cuts tool discovery tokens by 97%

https://github.com/activeing123/mcptoon
16•mcptokensaver•44m ago•5 comments

Bow Windshield

https://en.wikipedia.org/wiki/Bow_windshield
3•CalChris•47m ago•0 comments

Coop Roost: Free, Open Source Child Safety Infrastructure for Every Platform

https://roost.tools/blog/coop-1-0-world-s-first-free-open-source-child-safety-infrastructure-for-...
2•tyfrankiv•47m ago•0 comments

Show HN: ConfigLedger -Find configuration drift across code, CI, Docker and docs

https://github.com/DevFoundry-labs/configledger/
2•DevFoundry-labs•48m ago•0 comments

Show HN: NiceShot AI – The analytics layer competitive games forgot to add

https://github.com/karimm-ai/NiceShot_AI
2•niceshot-ai•52m ago•0 comments

Tlbic Supplement v11.0: Added Question for Readers in Other Languages

https://drive.google.com/file/d/1svnkbPHkdK2Oyp2T2kAhhQna1ANtH7bO/view?usp=drive_link
1•michikawa59•53m ago•2 comments

Checkly: Metabase Security Incident

https://www.checklyhq.com/blog/metabase-security-incident/
1•sangeeth96•54m ago•0 comments

LLVM: Estimating Branch Probabilities

https://maskray.me/blog/2026-08-09-estimating-branch-probabilities
1•signa11•54m ago•0 comments

Show HN: Mychart-CLI, a local-first exporter for records you can view

https://github.com/lifan-builds/mychart-cli
1•lifan-builds•56m ago•0 comments

Never Bet Against Elon

https://blog.oxplot.com/never-bet-against-elon/
1•oxplot•57m ago•0 comments

Clanker Constitution

https://github.com/kenn-io/constitution
2•tosh•1h ago•0 comments

Claude skill automating edits to songs

https://github.com/ZiadAbdelkarim/beat-synced-edit
2•iwasastreamer•1h ago•0 comments

Yet Another Speed Dial

https://yetanotherspeeddial.com
2•modzu•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).