frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Jitpipe–Sample 25 stdin rows,synthesize regex/Awk filter,stream the rest in Rust

https://github.com/abhinavm-web/jitpipe
1•abhinav9131•45s ago•0 comments

Where Did the ACK Go?

https://yashgarg.dev/posts/where-did-the-ack-go/
1•yash_garg•2m ago•0 comments

Older adults have significantly weaker waves of cerebrospinal fluid during sleep

https://www.nature.com/articles/s43587-026-01270-4
1•jonbaer•3m ago•0 comments

Directly editing a VLA's weights improved its performance, with no fine-tuning

https://www.abdulrahimmirani.com/research/vla-weight-editing
1•gmays•7m ago•0 comments

Ternary Computation That Transforms Your Machine into a Sovereign Territory

https://www.reddit.com/u/vrkonstrukt/s/dPVn5VohNZ
1•vrkonstrukt•15m ago•1 comments

Zeptosecond – the smallest time unit ever measured

https://www.bbc.co.uk/newsround/54631056
3•alwillis•22m ago•1 comments

The Professional Agentic Architect Certification

https://cloud.google.com/blog/topics/training-certifications/google-cloud-agentic-architect-certi...
2•sjdh76•22m ago•0 comments

Ukrainian Drones Damage Navigation Span of Kerch Strait Bridge

https://maritime-executive.com/article/ukrainian-drone-damages-navigation-span-of-kerch-strait-br...
2•gumby•23m ago•1 comments

Tips for Tackling "Tell Me About a Time When" Interview Questions Like a Pro

https://www.themuse.com/advice/tips-for-tackling-tell-me-about-a-time-when-interview-questions
2•Brysonbw•26m ago•0 comments

Gemini 4 Hydrogen paints and animates cells frame by frame inside Google Sheets

https://twitter.com/Google/status/2121004369617485896
3•alok-g•26m ago•1 comments

Localix Studio – an open-source Cursor alternative for any model

https://github.com/localixai/localix-studio
3•rsaryev1997•26m ago•0 comments

The most expensive bargaining chip in history

https://unrelatedfindings.com/essays/the-most-expensive-bargaining-chip-in-history/
4•vext_cwm_fly•26m ago•0 comments

Post-Quantum OpenID Connect

https://openid.net/post-quantum-openid-connect/
2•mooreds•27m ago•0 comments

Tokendoctor – the same Claude Code for up to 38% less

https://github.com/localixai/tokendoctor
3•rsaryev1997•30m ago•0 comments

An Illustrated Guide to AI Agents:Concepts and Code for Building Agents with LLM

https://www.oreilly.com/library/view/an-illustrated-guide/9798341662681/
3•teleforce•31m ago•0 comments

If an App Asks for Full Disk Access or System and App Protection Override

https://support.apple.com/en-us/149699
3•jshier•33m ago•1 comments

Instinct Made the Consumer Agent Feel Real

https://twitter.com/sytaylor/status/2094346674911035447
3•gmays•34m ago•0 comments

Mem Is Shutting Down

https://get.mem.ai/blog/mem-is-shutting-down
11•qainsights•36m ago•8 comments

Show HN: A free interactive course on AI agent governance

https://studio.sinapsdata.com.br
6•sadrk•38m ago•2 comments

Flashwright: The fastest E2E testing framework, up to 4x faster than Playwright

https://flashwright.dev/
5•thunderbong•39m ago•0 comments

Show HN: Coding agents with native environments, identity and access

https://kosem.ai/blog/coding-agents-workstation-moment
2•yevpats•39m ago•0 comments

Command and Control (C2): The invisible screen behind almost every cyber attack

https://medium.com/@nukeratframework/command-and-control-c2-the-invisible-screen-behind-almost-ev...
2•JohnTheTitor•39m ago•0 comments

Show HN: Astrum – a terminal multiplexer with integrated AI assistant

https://robert-mcdermott.github.io/astrum/
3•mcdermott•39m ago•0 comments

Cron jobs and background workers without a separate dyno

https://railyard.run/blog/scheduled-tasks/
2•RailyardRun•43m ago•0 comments

Move from Render to your own server

https://railyard.run/blog/migrate-render-to-your-own-server/
2•RailyardRun•43m ago•0 comments

Claude's Workbench – Claude architects and reviews, local LLMs write the code

https://github.com/a-schaefers/claudes-workbench
2•telecommuter•50m ago•0 comments

Synty Studios Joins Unity, Bringing Artist-Made Assets to Unity Spark

https://unity.com/blog/synty-studios-acquisition
3•gmjosack•51m ago•0 comments

Apple Just Added Face Unlock to iPhone Duo

https://www.macrumors.com/2026/11/16/iphone-duo-face-unlock-hands-on/
3•mgh2•53m ago•0 comments

In the Age of A.I. Slop, a Montebello Metalhead Still Proudly Draws Art by Hand

https://lataco.com/black-metal-punk-album-art
8•cdrnsf•54m ago•0 comments

DOJ to review DoorDash-Instacart merger

https://www.reuters.com/world/doordash-instacart-merger-be-reviewed-by-doj-sources-say-2026-11-16/
4•JumpCrisscross•54m 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).