frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Taiwan solved tax evasion in 1951 with a trick

https://twitter.com/i/status/2073991580986609904
1•Michelangelo11•48s ago•0 comments

Mews Cuts 15% of Staff, Points to AI in Broad Restructuring

https://twitter.com/LayoffAI/status/2074571918255194361
1•agilek•1m ago•0 comments

Jamboree – Multiplayer Synthesizer

https://jamboree.space
1•sandgiant•2m ago•0 comments

ZML/LLMD alpha – cross platform LLM server

https://zml.ai/posts/llmd/
1•steeve•4m ago•0 comments

Echoo – AI on the text you're typing in any Mac app, free to try, no API key

https://www.echoo.ai/
2•mike-el•9m ago•0 comments

A task tool I use flagged 4 of my team's tasks as 30x overdue

https://aura4app.com
1•abusalh•12m ago•0 comments

Show HN: Token-saviour – agent skill from benchmarking 9 token-saving tools

https://github.com/vagkaratzas/token-saviour
1•vagkaratzas•13m ago•0 comments

Scalable Untargeted Promptware Attacks via Adversarial HalluSquatting

https://sites.google.com/view/agentic-botnets/home
1•shscs911•14m ago•1 comments

How do we make coding agents write good code?

https://github.com/molvqingtai/The-Absolute-Code
1•molvqingtai•14m ago•0 comments

Claude bug report: Cross-session credential leakage

https://github.com/anthropics/claude-code/issues/72274
2•delamon•15m ago•0 comments

Flagship models are not always better

https://tej.as/blog/note-app-ai-benchmark-apple-intelligence-sucks
1•tejaskumar_•15m ago•0 comments

Earn 50% on Each Subscription

1•kwefnkwjen•16m ago•0 comments

Decoding the obfuscated bash script on a Uniqlo t-shirt

https://tris.sherliker.net/blog/obfuscated-self-evaluating-bash-script-by-cdn-akamai-being-suppli...
1•speerer•16m ago•0 comments

Apple Loses Spat with EU over App Store and iPhone Rules

https://www.bloomberg.com/news/articles/2026-07-08/apple-loses-spat-with-eu-over-app-store-and-ip...
2•vrganj•20m ago•1 comments

Rust service isn't leaking: when do glibc / jemalloc / mimalloc call munmap

https://pranitha.dev/posts/rust-and-memory-allocators/
1•fanf2•20m ago•0 comments

Most slopcode projects are abandoned and deleted within months of release

https://www.osnews.com/story/145469/most-slopcode-projects-are-abandoned-and-deleted-within-month...
2•latexr•20m ago•0 comments

Tiny386: ESP32 (slowly) running Windows 95

https://hchunhui.github.io/tiny386/esp32s3_win95.webm
2•kls0e•21m ago•1 comments

Apple interest thrusts China's CXMT into memory chip spotlight

https://www.ft.com/content/f4ac5c92-03be-4499-b16a-017a7e9ee228
1•0in•23m ago•0 comments

Geosql: A Claude/Codex skill for geospatial data

https://github.com/dekart-xyz/geosql
1•rzk•25m ago•0 comments

SQLite-utils 4.0, now with database schema migrations

https://simonwillison.net/2026/Jul/7/sqlite-utils-4/
1•pretext•27m ago•0 comments

Adiabatic Circuit

https://en.wikipedia.org/wiki/Adiabatic_circuit
1•tristenharr•31m ago•0 comments

Zero Copy

https://en.wikipedia.org/wiki/Zero-copy
2•tristenharr•33m ago•0 comments

Interview: Drew DeVault on an AI-free version of Vim

https://jasonpolak.substack.com/p/interview-drew-devault-on-an-ai-free
2•vouaobrasil•33m ago•0 comments

Files SDK

https://files-sdk.dev
2•handfuloflight•35m ago•0 comments

Windows Privilege Abuse

https://www.semperis.com/blog/windows-privilege-abuse-can-lead-to-active-directory-compromise/
1•ishqdehlvi•36m ago•0 comments

Show HN: Orchestrator – a single-binary workflow orchestration tool

https://github.com/webstonehq/orchestrator
1•mikenikles•36m ago•1 comments

Three month suspension for a Core Developer

https://discuss.python.org/t/three-month-suspension-for-a-core-developer/60250
3•prakashqwerty•37m ago•1 comments

Lineageos Updates

https://lineageos.org/Infrastructure-Apps-Updates/
2•notorandit•38m ago•1 comments

Syntropy: A Web Framework for Ruby

https://github.com/digital-fabric/syntropy/
3•thunderbong•41m ago•2 comments

ZML releases free product to speed inference across AI chips

https://techcrunch.com/2026/07/08/hot-french-startup-zml-releases-free-product-to-speed-inference...
2•bogdiyan•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).