frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

µ-Boosting Your CMake Productivity with Environment Variables

https://www.kdab.com/%C2%B5-boosting-your-cmake-productivity-with-environment-variables/
1•jandeboevrie•54s ago•0 comments

Apple Can't Delay App Store Fee Fight While Waiting on Supreme Court

https://www.macrumors.com/2026/08/11/app-store-epic-games-fee-fight-proceeds/
1•dabinat•3m ago•0 comments

U.S. and Ukrainian Forces Went Head-to-Head in an Exercise. Ukraine's Drones Won

https://www.wsj.com/politics/national-security/u-s-and-ukrainian-forces-went-head-to-head-in-an-e...
1•defly•4m ago•0 comments

World oil and gas demand could grow until 2050, IEA says after U.S. pressure

https://www.cbc.ca/news/climate/iea-energy-outlook-2025-9.6976107
1•xbmcuser•5m ago•0 comments

How Claude's watermarking (probably) works

https://johnjwang.com/post/2026/08/12/how-claude-watermarking-probably-works/
1•johnjwang•6m ago•0 comments

Delta: Multiplayer environment for coding agents from the Zed team

https://delta.dev/
1•rohitpaulk•7m ago•0 comments

Brazil Suspends Discord Livestreaming After Teenager's Death

https://www.bloomberg.com/news/articles/2026-08-12/brazil-suspends-discord-livestreaming-after-te...
1•wslh•7m ago•1 comments

Natural Language Processing Almost from Scratch

https://arxiv.org/abs/1103.0398
1•Anon84•7m ago•0 comments

AI coding startup Cognition in talks to raise at $40B valuation

https://techcrunch.com/2026/08/12/ai-coding-startup-cognition-reportedly-already-in-talks-to-rais...
2•ashurandi•8m ago•0 comments

How Silicon Valley makes its anointed fellow travelers unspeakably rich

https://prospect.org/2026/08/12/aug-2026-world-from-the-inside-baker-review/
2•dxs•10m ago•0 comments

A Hadamard matrix of order 668 has been found

https://twitter.com/sumeetrm/status/2087534215772479838
1•birriel•10m ago•0 comments

Show HN: Programmable timer web app (for gym workouts or stretching sessions)

https://timer.jotaen.net
1•jotaen•11m ago•0 comments

Why Day 0 for Nemotron 3.5 Lightning wasn't a scramble

https://modelplane.ai/blog/nemotron-3-5-lightning-day-zero
1•hasheddan•11m ago•0 comments

What is the impact of higher interest rates on PE expected returns?

https://ludovicphalippou.substack.com/p/what-is-the-impact-of-higher-interest
2•toomuchtodo•15m ago•0 comments

Plug and Pwn attack uses fake USB devices for Windows SYSTEM access

https://www.bleepingcomputer.com/news/security/plug-and-pwn-attack-uses-fake-usb-devices-for-wind...
3•speckx•15m ago•0 comments

Show HN: A better, free client for iMessage power-users

1•jmatan•17m ago•0 comments

Adults have struggled to set rules for AI in school. These teens figured it out

https://text.npr.org/nx-s1-5853571
2•mooreds•18m ago•0 comments

Open-sourcing Metals v2: Databricks' Java and Scala language server

https://www.databricks.com/blog/open-sourcing-metals-v2-databricks-java-and-scala-language-server...
2•hocuspocus•19m ago•0 comments

Zed: Delta

https://zed.dev/blog/introducing-delta
11•khy•19m ago•0 comments

I'm Done Using AI

https://brettcodes.com/im-done-using-ai/
3•GrinningFool•19m ago•1 comments

China's top AI continues using Nvidia amid high costs of local chip transition

https://www.scmp.com/tech/big-tech/article/3363491/chinas-top-ai-still-trained-nvidia-chips-what-...
1•giuliomagnifico•20m ago•0 comments

ChatGPT visualizes every neighborhood in NYC

https://jackmaguire.org/blog/how-chatgpt-sees-new-york-city/
2•sillygoose75•20m ago•1 comments

Your Key to Success Isn't More Luck or Hard Work

https://julienreszka.com/blog/your-key-to-success-isn-t-more-luck-or-hard-work/
1•julienreszka•22m ago•0 comments

Ask HN:Why do websites today refuse to work on EDGE/2G?

2•DenisDolya•22m ago•0 comments

Branching Paths

https://thedailywtf.com/articles/branching-paths
1•D-Coder•22m ago•1 comments

Show HN: Drift Fever – an HTML5 arcade game with an original soundtrack

https://driftfever.com/
1•novlrdotcom•23m ago•0 comments

Agentic Engineering Is Just Everything We Haven't Been Doing

https://blog.matthewbrunelle.com/agentic-engineering-is-just-everything-we-havent-been-doing/
11•speckx•25m ago•1 comments

Temperature Zero for Culture

https://laurenleek.substack.com/p/temperature-zero-for-culture-why
1•colinprince•27m ago•0 comments

`whoport` – which agent is using localhost:3000?

https://clairenord.com/whoport.html
3•cnord•28m ago•2 comments

Show HN: Apollodorus Video – batch video editor in the browser that runs locally

https://apollodorus.pages.dev/video
1•midnightbobarun•28m 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).