frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Aftershock: Yesterday's Linux Kernel Bugs, Tomorrow's Android Exploits

https://arxiv.org/abs/2611.31547
1•beachhead•1m ago•0 comments

I'm a Therapist. I Wish These Patients Would Not Cut Off Their Family Members

https://www.nytimes.com/2026/11/25/opinion/politics-family-midterms-voting-holidays.html
1•vinni2•1m ago•0 comments

ML compiler eng, your job is NP-hard

https://ianbarber.blog/2026/11/24/ml-compiler-eng-your-job-is-np-hard/
1•gmays•2m ago•0 comments

Fail2Install: Turning System Limits into Pre-Auth RCE in Drupal

https://www.slcyber.io/research/fail2install-system-limits-pre-auth-rce-drupal
1•acossta•3m ago•0 comments

Playing with CSS Layers

https://kittygiraudel.com/2026/11/01/playing-with-css-layers/
1•vladde•3m ago•0 comments

Show HN: HN topics bar chart race,I use HTML-in-Canvas (need Chrome 157)

https://iantpe.github.io/hn-topic-race/?cat=langHist
1•iantpe•6m ago•1 comments

Show HN: I made a little gratitude wall for Thanksgiving

https://www.bravoboard.xyz/board/069c3cd2ef614c8397b5bfe250c626b2/
1•tumidpandora•8m ago•0 comments

Show HN: Anvil has won pricing among AI web builders plan starting at $5

https://www.tryanvil.dev/
1•Alumu•10m ago•0 comments

Metamath Proof Explorer Home Page

https://us.metamath.org/mpeuni/mmset.html
2•antiquark•11m ago•0 comments

Anchor – a habit app that doesn't reset your progress when you miss a day

https://getanchor.help/
1•eleventech•11m ago•0 comments

Gordon Ramsay revealed as new Top Gear host

https://www.rte.ie/entertainment/2026/1125/1600666-gordon-ramsay-revealed-as-new-top-gear-host/
1•FinnLobsien•14m ago•0 comments

Happily Ever After?

https://cinemasojourns.com/2026/11/25/happily-ever-after/
1•jjgreen•17m ago•0 comments

Paper Folding Puzzles: Can Multimodal LLMs Perform Spatial Reasoning?

https://ojs.aaai.org/index.php/AAAI/article/view/38364/42326
1•bryanrasmussen•18m ago•0 comments

Much shorter version of GRH Lean verification from Anthropic

https://github.com/lsernau/grh-lean
10•nb-t•19m ago•2 comments

Defang Security Incident

https://defang.io/blog/post/security-incident-november-2026/
16•gregsadetsky•20m ago•0 comments

A Man in Denver Has Been Trapping Waymo Vehicles

https://www.nytimes.com/2026/11/25/us/waymo-denver-egg-throwing.html
2•donohoe•21m ago•0 comments

First publicly-documented wartime interception of a jet-powered drone by laser

https://twitter.com/bayraktar_1love/status/2125619358453911742
2•nomilk•22m ago•1 comments

Prof. Sam Lawler: FUCK FUCK FUCK FUCK FUCK FUCK FUCK

https://mastodon.social/@sundogplanets/117678381079935502
9•marvinborner•23m ago•1 comments

Peco customers will see electric supply rate increase because of data centers

https://www.inquirer.com/business/energy/peco-electricity-rate-increase-data-centers-20261123.html
1•bkandel•26m ago•1 comments

Huang vs. Trump Lol

https://discuss.google.dev/t/trusted-automation-with-google-antigravity-scaling-secure-finance-in...
1•gutwrbetecg•27m ago•0 comments

Ask HN: Nobel Prizes for OpenAI and Anthropic: When?

1•LinaLauneBaer•34m ago•1 comments

WebRTC Leaks Behind a SOCKS5 Proxy: How We Closed the UDP Gap

https://kameleo.io/blog/webrtc-leaks-behind-a-socks5-proxy-how-we-closed-the-udp-gap
1•brnbs•34m ago•0 comments

Ask HN: I'm building an inference engine. Ask me anything

2•logotype•36m ago•1 comments

Queue Theory: a software engineering tutorial

2•jph•36m ago•1 comments

Adam Tooze on Jensen Huang's Return to Nvidia [video]

https://www.youtube.com/watch?v=qQGUeDkvOEI
1•verdverm•37m ago•0 comments

The Urge to Retrace Human Technological History

https://bcli.substack.com/p/the-urge-to-retrace-humanitys-technological
1•aspiringLich•39m ago•0 comments

Rødhals Man: a life at the end of the Mesolithic world

https://www.cambridge.org/core/journals/antiquity/article/rdhals-man-a-life-at-the-end-of-the-mes...
1•anyonecancode•40m ago•0 comments

Trump administration approves Elon Musk's plan for datacenters in space

https://www.theguardian.com/us-news/2026/nov/25/spacex-datacenter-satellites-approval
4•blue1•42m ago•1 comments

Your agent should never see your credentials

https://polylane.com/blog/your-agent-should-never-see-your-credentials/
3•matanyall•43m ago•0 comments

Cognition SWE-2.1

https://cognition.com/blog/swe-2-1
2•gmays•44m 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).