frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Case Against Public Engineering Levels

https://i0exception.substack.com/p/the-case-against-public-levels
1•i0exception•1m ago•0 comments

The condition that causes people to get lost in their own home

https://www.rnz.co.nz/life/wellbeing/the-condition-that-causes-people-to-get-lost-in-their-own-home
3•billybuckwheat•1m ago•0 comments

Building an Intern

https://cra.mr/building-an-intern/
1•ghiculescu•1m ago•0 comments

Testers Wanted: Jam Pod – An iPod Classic Experience for Android

https://play.google.com/apps/internaltest/4701161138918790634
1•djampodev•2m ago•0 comments

Midjourney's Full Body Ultrasound [video]

https://www.youtube.com/watch?v=4nzzpUKhj1M
1•mikenew•3m ago•0 comments

"An AI Job Apocalypse?" – Goldman Sachs Report [pdf]

https://www.goldmansachs.com/static-libs/pdf-redirect/prod/index.html?path=/pdfs/insights/goldman...
1•aanet•4m ago•1 comments

Safety and efficacy of mRNA vaccines: mechanistic and public health perspective

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(26)00512-X/abstract
1•paulpauper•5m ago•0 comments

A Silent Auction

https://mirrlees-auction.nuff.ox.ac.uk/
1•paulpauper•5m ago•0 comments

Rent Control: The Ceiling Trap

https://mason.gmu.edu/~atabarro/RentControl/
1•paulpauper•6m ago•0 comments

Lean4Physics: Reasoning Framework for College Physics in Lean4

https://arxiv.org/abs/2510.26094
1•soupspaces•6m ago•0 comments

Artificial Adventures

https://www.scattered-thoughts.net/writing/artificial-adventures/
1•jeffreyrogers•7m ago•0 comments

Show HN: I made a tool that prevents websites from tracking you

https://github.com/alex-w-developer/GetBlocked
2•sudo_cowsay•11m ago•0 comments

Show HN: Document to Excel Converter

https://www.docupipe.ai/tools/pdf-to-excel
1•uri_merhav•12m ago•0 comments

An Ordinary Mind on an Ordinary Day

https://www.laphamsquarterly.org/roundtable/ordinary-mind-ordinary-day
1•tintinnabula•12m ago•0 comments

America Is Having MacBook Sticker Shock

https://www.theatlantic.com/technology/2026/07/apple-prices-macbook-memory-shortage/687781/
2•voxadam•19m ago•0 comments

Show HN: Autonomous Home Services Businesses

https://rainslice.ai
2•edgware674•19m ago•0 comments

Deep Agent Code Capabilities

https://docs.langchain.com/oss/python/deepagents/code/overview
1•kristianpaul•20m ago•0 comments

Startup sues Palo Alto Networks' Koi Security due to AI-hallucinated report

https://www.theregister.com/legal/2026/07/02/startup-sues-palo-alto-networks-koi-security-saying-...
3•dijksterhuis•20m ago•1 comments

GitHub is proud to announce that you can now obtain your public repo on CD-ROM

https://forms.cloud.microsoft/pages/responsepage.aspx?id=v4j5cvGGr0GRqy180BHbR6G-c11n8yFDlQmk4B-Q...
2•throwaway2027•21m ago•1 comments

An American Privacy Emergency

https://scottaaronson.blog/?p=9902
13•flowercalled•22m ago•0 comments

Fable 5's cyber safeguards and jailbreak framework

https://www.anthropic.com/news/fable-safeguards-jailbreak-framework
2•logickkk1•22m ago•0 comments

GLM-5.2: The Open-Source Chinese Model Challenging Claude at One-Fifth the Cost

https://mrkt30.com/glm-5-2-open-source-ai/
1•bmcdresson•27m ago•0 comments

Australians have more negative view of Israel than of China – Essential poll

https://www.theguardian.com/australia-news/2026/jul/03/australians-more-negative-view-of-israel-t...
2•aussieguy1234•27m ago•0 comments

Right to Local Intelligence

https://righttointelligence.org/
4•thoughtpeddler•29m ago•0 comments

Google must pay €4.1B fine for using Android to 'block' rivals

https://www.bbc.co.uk/news/articles/cvgj0pp5p62o
3•logickkk1•30m ago•0 comments

Hobbes – A Language and Embedded JIT Compiler

https://github.com/morganstanley/hobbes
1•ryan-ca•30m ago•0 comments

Using AI Agents with Databases

https://github.com/vaishcodescape/data-spear
1•vaishcodescape•31m ago•0 comments

Stealing 50 Years of Database Ideas for AI Agents

https://onewill.ai/blog/2026/stealing-50-years-of-database-ideas-for-ai-agents/
1•matt_d•33m ago•0 comments

Domino's Pizza parodies Sony's discontinuation of physical games

https://twitter.com/Dominos_UK/status/2072602429959340517
2•josephcsible•36m ago•0 comments

Building the T.LY iOS App

https://timleland.com/building-the-tly-ios-app/
1•TimLeland•37m 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).