frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

15-minute at-home Lyme disease tick test

https://www.bostonglobe.com/2026/06/17/business/lyme-disease-tick-test/
1•bookofjoe•23s ago•0 comments

Europe must choose between AI and climate goals, data center lobby says

https://www.politico.eu/article/europe-choose-ai-climate-goals-data-center-chief-warns/
1•hamburgererror•32s ago•0 comments

Trump's Anthropic restrictions may be illegal

https://www.politico.com/news/2026/06/18/trump-anthropic-ai-export-controls-00966118
1•JumpCrisscross•45s ago•0 comments

A Drone Barrage on Moscow Escalates Ukraine's Push to Take the War to Russia

https://www.nytimes.com/2026/06/18/world/europe/moscow-ukraine-drone-attack-fire.html
1•JumpCrisscross•2m ago•0 comments

Rankpad – AI Visibility Tracking for Brands

https://www.rankpad.app/
1•MattAtBlkk•2m ago•0 comments

Offline Ablation Predicted -0.19pp. Production Delivered +1.11pp

https://flyback.ai/engineering/ablation-said-ship
1•flyback•2m ago•0 comments

Excel in 100 lines of F# (2018)

https://tomasp.net/blog/2018/write-your-own-excel/
1•tosh•3m ago•0 comments

Microsoft new Outlook takes 10 seconds to do what Outlook Classic does instantly

https://www.windowslatest.com/2026/06/15/microsofts-new-outlook-takes-10-seconds-to-do-what-outlo...
2•Adam-Hincu•3m ago•1 comments

The Welding Torch That Feels for the Seam – Industrial and Manufacturing

https://atomsfrontier.substack.com/p/the-welding-torch-that-feels-for
1•jpatel3•3m ago•0 comments

Grok Imagine Video 1.5

https://x.ai/news/grok-imagine-video-1-5
1•peterspath•5m ago•0 comments

Technical Dimensions of Programming Systems

https://tomasp.net/techdims/
2•tosh•7m ago•0 comments

I'm building a drone for the DARPA lift challenge [video]

https://www.youtube.com/watch?v=tohImHa4f5U
1•surprisetalk•7m ago•0 comments

Traumatic brain injury and risk of attempted suicide and violent crime (2023)

https://www.cambridge.org/core/journals/psychological-medicine/article/abs/traumatic-brain-injury...
1•tokai•8m ago•0 comments

Show HN: Reverse engineering user queries for ChatGPT/Gemini

https://github.com/syntropicsignal-ai/ai-visibility-audit
1•biduskamil•10m ago•1 comments

AI therapy chatbots in 2026: what Replika, Woebot, and ChatGPT get right

https://medium.com/@6thMind/ai-therapy-chatbots-in-2026-what-replika-woebot-and-chatgpt-get-right...
1•smanuel•10m ago•0 comments

Emacs 31 Is Around the Corner: The Changes I'm Daily Driving

https://www.rahuljuliato.com/posts/emacs-31-around-the-corner
2•frou_dh•12m ago•0 comments

Show HN: Glassboard – Draw over everything on your Mac, Khan-academy style

https://stem.ps/glassboard/
2•stemps23•14m ago•0 comments

From pixels to planning: Earth AI for nature restoration

https://research.google/blog/from-pixels-to-planning-earth-ai-for-nature-restoration/
1•thm•15m ago•0 comments

Pyrefly v1.1 is here 27% faster, refactoring tools, tensor shapes

https://pyrefly.org/blog/v1.1/
2•ocamoss•15m ago•0 comments

Show HN: Circular Map with You in the Middle

https://hubofuniverse.com/
1•bitslayer•18m ago•0 comments

Goodbye RSS

https://basic.bearblog.dev/goodbye-rss/
1•speckx•18m ago•0 comments

Smashing the NIMBYs created modern capitalism

https://worksinprogress.co/issue/how-abolishing-the-stakeholder-state-caused-the-industrial-revol...
1•bensouthwood•19m ago•0 comments

What's Easy Now? What's Hard Now?: Software is easier for coding agents

https://brooker.co.za/blog/2026/05/18/whats-easy-whats-hard.html
1•xenophenes•20m ago•0 comments

Show HN: Glisker – First-impression feedback on your landing page (no signup)

https://www.glisker.com/
1•merveceylan•20m ago•0 comments

Apple Prepares Second-Generation iPhone Air for Spring 2027

https://www.bloomberg.com/news/articles/2026-06-17/apple-prepares-second-generation-iphone-air-fo...
1•nicksergeant•21m ago•0 comments

Show HN: Polyvia – Multimodal document retrieval over 100K+ files

https://github.com/polyvia-ai/polyvia
1•mgierlach-polyv•22m ago•0 comments

Show HN: Eggspression – shape any bird egg in 3D from four parameters

https://s13k.dev/eggspression/
2•s13k•23m ago•0 comments

Cotect – move around your repo with WASD

https://cotect.dev/
1•grzracz•28m ago•0 comments

World’s “most famous” tree dies after 1000 years in England

https://www.dexerto.com/entertainment/worlds-most-famous-tree-dies-after-1000-years-in-england-33...
1•thunderbong•29m ago•0 comments

Thomas Jefferson to John Norvell (1807)

https://press-pubs.uchicago.edu/founders/documents/amendI_speechs29.html
1•downbad_•31m 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).