frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Running GLM-5.2 on a 64GB Mac, barely

https://andreaborio.substack.com/p/i-tried-to-run-glm-52-on-a-64gb-mac
2•andreaborio•1m ago•0 comments

Task Failed Successfully: Saturating NIC and Disk Bandwidth

https://blog.mrcroxx.com/posts/task-failed-successfully-saturating-nic-and-disk-bandwidth/
1•MrCroxx•2m ago•0 comments

FDA Allows New Sunscreen, but Consumers Are Still Being Burned by Cronyism

https://www.independent.org/article/2026/06/12/fda-new-sunscreen/
1•littlexsparkee•2m ago•0 comments

Pew Research: AI adoption is rising. Trust isn't

https://www.pewresearch.org/internet/2026/06/17/americans-and-ai-2026-chatbots-smart-devices-and-...
1•dd-sharma•3m ago•1 comments

Anthropic – Elevated error rate across multiple models

https://downdetector.com.br/en/status/claude-ai/
1•brenoRibeiro706•4m ago•0 comments

European Parliament committee backs digital euro

https://www.euronews.com/business/2026/06/23/european-parliament-backs-long-awaited-digital-euro-...
2•lode•4m ago•1 comments

Sunsetting Porto to focus on Tempo accounts

https://ithaca.xyz/updates/sunsetting-porto
1•kindkang2024•5m ago•0 comments

Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX

https://tikz.dev/editor/
1•DominikPeters•6m ago•0 comments

The AI Code Agent Hype: Real Progress vs. Expectations

https://jawuil.dev/en/blog/the-ai-code-agent-hype-real-progress-vs-expectations/
1•jawuilp•6m ago•0 comments

Badakhshan Falls Under Mafia: Systematic Gold Mine Plunder, Taliban Corruption

https://8am.media/eng/badakhshan-falls-under-mafia-control-systematic-gold-mine-plunder-and-talib...
1•JPLeRouzic•7m ago•0 comments

Meta Glasses

https://www.meta.com/at/en/ai-glasses/meta-glasses/
1•tosh•7m ago•0 comments

Ask HN: How do you keep up with tech news

1•dariusogenyiebu•7m ago•0 comments

Vulgar Materialism

https://borretti.me/article/on-vulgar-materialism
1•ibobev•8m ago•0 comments

Second taskbar to my Windows PC

https://www.makeuseof.com/add-second-taskbar-to-windows-with-windowsill/
1•veler•10m ago•0 comments

Show HN: Bun-sqlgen – Type-safe raw SQL for Bun, no ORM

https://github.com/ilbertt/bun-sqlgen
6•ilbert•10m ago•0 comments

Elevated error rate across multiple models

https://status.claude.com/incidents/jbhf20wjmzrf
27•rob•10m ago•8 comments

The eerie interface of man and machine (Life Magazine, October 1967)

https://blog.jgc.org/2026/06/the-eerie-interface-of-man-and-machine.html
1•jgrahamc•11m ago•0 comments

The AI-powered World Cup runs on thousands of data workers

https://restofworld.org/2026/fifa-world-cup-ai-data-workers/
1•jyunwai•12m ago•0 comments

OctoPunk – a full-featured, AI-integrated GitHub client

https://www.octopunk.io/
1•ldelossa•12m ago•1 comments

Useful app changed how I use Windows 11's taskbar

https://www.xda-developers.com/using-windowsill-to-change-windows-11-taskbar/
1•veler•13m ago•0 comments

Ushering in the Next Frontier of Quantum Innovation

https://www.whitehouse.gov/presidential-actions/2026/06/ushering-in-the-next-frontier-of-quantum-...
1•Tomte•13m ago•0 comments

The Economy Is Booming Just Not for You [video]

https://www.youtube.com/watch?v=-RMZszjZSNE
1•surprisetalk•14m ago•0 comments

US issues Executive Order To accelerate PQC adoption

https://www.whitehouse.gov/presidential-actions/2026/06/securing-the-nation-against-advanced-cryp...
1•glitchc•14m ago•0 comments

Show HN: Saymade – AI app builder for complex software

https://saymade.com
1•domag•15m ago•0 comments

Kids360: Getting Adopted Globally

https://srlabs.de/blog/kids360
1•louismerlin•15m ago•0 comments

When Ideology Becomes Systemic Risk

https://twitter.com/haridigresses/status/2068167592301223939
1•gmays•15m ago•0 comments

Modern CSS theming with light-dark(), contrast-color(), and style queries

https://una.im/modern-css-theming
1•bpierre•16m ago•0 comments

Solving Pipes Puzzles with Constraint Propagation

https://minimallysufficient.com/posts/pipes/
2•minsufficient•17m ago•1 comments

Does AI Adoption Improve Productivity? Effects over the First Three Years

https://www.bok.or.kr/eng/bbs/B0000354/view.do?nttId=10098400&menuNo=400409&relate=Y&depth=400409...
1•toomuchtodo•18m ago•1 comments

We Don't Understand Neural Networks at the Algorithmic Level

https://kripken.github.io/blog/neuroscience/2026/06/20/algorithmic.html
1•azakai•18m 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).