frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Physical Agent Harness: a portable interface to persistent agents

https://rashidazarang.com/c/the-physical-agent-harness
1•rashidae•27s ago•0 comments

Air Force secretary acknowledges the US has weapons in space

https://abcnews.com/Politics/air-force-secretary-acknowledges-us-weapons-space/story?id=136437923
1•SanjayMehta•54s ago•0 comments

World AI Cooperation Organization

https://en.wikipedia.org/wiki/World_Artificial_Intelligence_Cooperation_Organization
1•soundworlds•1m ago•1 comments

Show HN: Day week calendar app inspired by the French Revolutionary calendar

https://github.com/OlegIGalkin/tendayweekcalendar
1•cantouch•3m ago•0 comments

US-China AI strategic planning

https://sinocism.com/p/us-china-strategic-ai-dialogue-said
1•neptunetriton•5m ago•0 comments

The harms of short-form video on the brain are starting to show

https://www.theguardian.com/commentisfree/2026/sep/14/zuckerberg-short-form-video-cognitive-harm
2•pizzaiolo•13m ago•0 comments

I worked at Google DeepMind. You should listen to the warnings about AI

https://www.theguardian.com/technology/2026/sep/14/google-deepmind-ai-warnings
2•gibspaulding•13m ago•0 comments

The Rise of the Forward Deployed Engineer – and How to Do the Job Right

https://www.latent.space/p/forward-deployed-engineer-best-practices
1•yarapavan•15m ago•0 comments

Exploring mathematics with your computer (1993)

https://archive.org/details/exploringmathema0000enge
1•vismit2000•17m ago•0 comments

Why is nobody signing up even though I launched an unlimited plan on my website?

2•petebay•17m ago•1 comments

Efficient capital allocation in media as it relates to catalog IP

https://sidecar-part-ii.danieldeboulay.com
2•deboulaymxf•20m ago•0 comments

National Security Agency launches historic restructuring

https://www.washingtonpost.com/national-security/2026/09/13/national-security-agency-launches-his...
5•punk_ihaq•21m ago•1 comments

OpenAI DevDay 2026

https://devday.openai.com
2•almyk•24m ago•0 comments

Tokenomics: Fable 5.1's reduced cache read makes it cheaper than Opus

https://skids.dev/blog/fable-cache-tokenomics/
3•ryanskidmore•25m ago•0 comments

Data Seeding in .NET

https://learn.microsoft.com/en-us/ef/core/modeling/data-seeding
1•Brysonbw•26m ago•0 comments

Ask HN: Taxes while living abroad as a US citizen

2•wnolens•27m ago•2 comments

Analysis: Why Rollback Netcode Is Better (2020) [video]

https://www.youtube.com/watch?v=0NLe4IpdS1w
1•CharlesW•28m ago•0 comments

Israeli Effective Altruism Firm Behind OpenAI, Anthropic, and Meta Cyberattacks

https://twitter.com/brianchau57/status/2099580981271318606
9•MrBuddyCasino•33m ago•0 comments

Show HN: Oversold.com – Analyze a stock in 30 seconds

https://oversold.com/
3•wolfman1•39m ago•0 comments

ICE Attacks Two U.S. Citizen Minors on Their Way to Enlist in Marines

https://newrepublic.com/post/215393/ice-attacks-us-citizen-minors-enlist-marines
7•HotGarbage•42m ago•0 comments

People We Meet Along the Way – The Story of April and Gary

https://rinaldoj.substack.com/p/the-people-we-meet-along-the-way-829
1•jrinaldo68•45m ago•0 comments

Newfound fossils are spilling Denisovan secrets

https://www.sciencenews.org/article/new-fossils-denisovan-secrets-china
1•yannoninator•45m ago•0 comments

Vibe Coding is the new Internet Dating

https://joecmarshall.com/posts/vibecoding-is-the-new-internet-dating/
2•flancrest•53m ago•0 comments

There are so many bones everywhere: The whale graveyards that transform deep sea

https://www.bbc.com/future/article/20260225-the-whale-graveyards-that-transform-the-deep-sea
1•blondie9x•54m ago•0 comments

The Top Crisis of 2026

https://www.globalcrisisindex.com/the-strait-of-hormuz-the-top-crisis-of-2026.html
1•GlobalCrisisIdx•54m ago•0 comments

Raid on Bungeling Bay

https://en.wikipedia.org/wiki/Raid_on_Bungeling_Bay
3•Bluestein•1h ago•0 comments

Show HN: Sunk Cost – How long until a local LLM rig pays for itself?

https://sunkcost.ai/
9•rlindsey123•1h ago•6 comments

Building an Application Security Program That Works

https://collinsthoughts.substack.com/p/building-an-application-security
1•smurda•1h ago•0 comments

How Modern Technology Helped a Man Find a Cure to Save His Life

https://medium.com/swlh/doug-lindsay-the-man-who-cure-himself-12d40d3f643e
1•raynchad•1h ago•0 comments

StackBlitz is joining the Open Source Pledge

https://blog.stackblitz.com/posts/stackblitz-joins-osspledge/
3•noobplus•1h 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).