frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Greenland issues warning against US oil drilling on its territory

https://www.france24.com/en/video/20260810-greenland-issues-warning-against-us-oil-drilling-on-it...
2•_ZeD_•1m ago•0 comments

PyApp: Python app bootstrap wrapper

https://ofek.dev/pyapp/latest/
1•jcbhmr•1m ago•0 comments

Agents Can Talk, but They Can't Commit

https://www.valeriouberti.dev/articles/agents-can-talk-but-they-cannot-commit/
1•ubetorbi•2m ago•0 comments

The Linux Foundation Has Formally Launched the Tokenomics Foundation

https://techstrong.ai/articles/the-linux-foundation-has-formally-launched-the-tokenomics-foundation/
1•CrankyBear•3m ago•0 comments

CIT – Autonomous Cognitive Architecture with Persistent Causal Memory

https://www.citinteltech.com/
1•alexkrp•6m ago•0 comments

Bernie Sanders Writes Letter to Sam Altman, Dario Amodei and Mark Zuckerberg [pdf]

https://www.sanders.senate.gov/wp-content/uploads/AI-Pause-Letter-FINAL.pdf
3•nigelgutzmann•7m ago•0 comments

NCAA and FBI partner up to help athletes avoid being sexually exploited online

https://www.cnn.com/2026/08/10/sport/ncaa-fbi-partnership
2•rawgabbit•7m ago•0 comments

It's Official: Flock Is for Stalking

https://www.techdirt.com/2026/08/10/its-official-flock-is-for-stalking/
1•cdrnsf•8m ago•0 comments

Learning more about Claude's mathematical capabilities

https://www.anthropic.com/research/riemann-zeta
5•tosh•8m ago•1 comments

An Underscore Sent an Innocent Man to Jail

https://canliiconnects.org/en/commentaries/99756
1•pseudolus•8m ago•0 comments

Inverse Differential Equations

https://www.johndcook.com/blog/2026/08/10/inverse-differential-equations/
1•ibobev•9m ago•0 comments

Learning from Historical Mistakes

https://www.johndcook.com/blog/2026/08/10/learning-from-historical-mistakes/
1•ibobev•9m ago•0 comments

Former acting IRS head warns of tax compliance 'race to the bottom'

https://www.cfodive.com/news/former-acting-irs-head-warns-tax-compliance-race-bottom/827230/
2•petethomas•9m ago•0 comments

Cylic Trait Implementations: Motivation

https://smallcultfollowing.com/babysteps/blog/2026/08/10/cyclic-trait-solving/
1•ibobev•9m ago•0 comments

Why play is at the core of a meaningful life

https://www.ft.com/content/7b95cdab-7546-432f-b4a1-6509e7648ec5
1•bryanrasmussen•9m ago•1 comments

Hi HN Rune – A software intelligence runtime for AI coding assistants

https://github.com/thecolourfoundation/rune
1•malixp•10m ago•0 comments

Who Should Pay for Source Code Availability?

https://kristoff.it/blog/source-code-availability/
1•kristoff_it•11m ago•0 comments

We're releasing a new model (GPT-5.6-Cyber)

https://twitter.com/gdb/status/2086866967479341305
2•tosh•11m ago•0 comments

Frontier Intelligence for Cybersecurity Teams

https://openai.com/business/solutions/cybersecurity/
1•k2xl•12m ago•0 comments

AI Boot Camps Surge as Workers Race to Learn New Skills

https://www.bloomberg.com/news/articles/2026-08-08/ai-training-boom-sends-colleges-racing-to-offe...
3•petethomas•13m ago•0 comments

The Case for the Everettian Multiverse

https://philsci-archive.pitt.edu/30707/
1•anotherpaulg•13m ago•0 comments

When coding gets cheap, engineering gets harder

https://crinkles.dev/writing/when-coding-gets-cheap-engineering-gets-harder/
1•speckx•14m ago•0 comments

Cloudflare Tools Secure Autonomous AI Payments

https://aimagazine.com/news/how-cloudflare-tools-secure-autonomous-ai-payments
1•ashurandi•14m ago•0 comments

Following Epic loss, Google hosts rival app stores in the Play Store

https://arstechnica.com/gadgets/2026/08/third-party-app-stores-are-rolling-out-in-google-play-but...
2•ilamont•18m ago•0 comments

CEO Just Fired 500 People Because He Says Zillow Is More Efficient Without Them

https://galratner.substack.com/p/zillows-ceo-just-fired-500-people
4•warp•20m ago•2 comments

Ask HN: How do you learn with LLMs?

1•py4•22m ago•0 comments

Lindy Effect

https://en.wikipedia.org/wiki/Lindy_effect
1•tosh•25m ago•0 comments

Bayesianity

https://www.gleech.org/bayes
1•leephillips•26m ago•1 comments

Configuration Is Not Customization

https://www.boldfaceline.com/posts/configuration-is-not-customization
2•speckx•27m ago•0 comments

OpenAI launches GPT-5.6-Cyber with fewer refusals for exploit research

https://runtimewire.com/article/openai-gpt-5-6-cyber-daybreak-red
5•ryanmerket•27m 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).