frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Kontak Resmi Agoda Indonesia TLP: 0815.4054.505

1•bonestormii_•28s ago•0 comments

Layanan Agoda Reschedule – Call Center Agoda 0815.4054.505

1•bonestormii_•1m ago•0 comments

Product Launch: Route Optimization SaaS

https://sco.essofore.com
1•sijain2•1m ago•0 comments

Reschedule Agoda Hubungi 0815-4054-505

1•Akshay93•2m ago•0 comments

Bantuan Agoda Indonesia Hubungi 0815.4054.505

1•Akshay93•2m ago•0 comments

Show HN: Time Journey

https://www.timejourney.ai/
1•jumbotron737•3m ago•0 comments

Nomor Telepon Agoda.com 0815.4054.505

1•Akshay93•3m ago•0 comments

Running a Heating, Ventilation, and Air Conditioning (HVAC) Model in EnergyPlus

https://www.ptidej.net/blog/running-an-hvac-model-in-energyplus/
1•yann-gael•3m ago•1 comments

Ask HN: Have you ever seen a perfect codebase?

2•mcdow•6m ago•1 comments

Linus Torvalds is optimistic about vibe coding except for this one use

https://www.zdnet.com/article/linus-torvalds-is-surprisingly-optimistic-about-vibe-coding-except-...
1•CrankyBear•6m ago•0 comments

Adobe to Buy Semrush for $1.9B

https://www.cnbc.com/2025/11/19/adobe-ai-semrush-stock-deal.html
1•pdyc•6m ago•0 comments

Cypherpunks Hall of Fame

https://github.com/cypherpunkshall/cypherpunkshall.github.io
2•kiray•8m ago•0 comments

Real evidence that LLMs cannot operate businesses

https://skyfall.ai/blog/building-the-foundations-of-an-ai-ceo
2•sumit_psp•9m ago•0 comments

A better way to search Hacker News using LLMs

https://github.com/typedef-ai/fenic-examples/tree/main/hn_agent
2•cpard•10m ago•1 comments

GPT-5.1-Codex-Max System Card

https://openai.com/index/gpt-5-1-codex-max-system-card/
1•wertyk•10m ago•0 comments

Kinds of Stealing

https://seths.blog/2025/11/kinds-of-stealing/
2•speckx•11m ago•0 comments

AI System Outperforms Human Experts at AI Research

https://twitter.com/IntologyAI/status/1991186650240806940
3•RonusMTG•13m ago•1 comments

Library discovery by automated small molecule structure annotation

https://www.nature.com/articles/s41467-025-65282-1
1•PaulHoule•13m ago•0 comments

Animal Spirits: Is the AI Trade Over?

https://awealthofcommonsense.com/2025/11/animal-spirits-is-the-ai-trade-over/
1•paulpauper•15m ago•0 comments

Night of Modern Art History, Night of Spectacle at Sotheby's

https://www.nytimes.com/2025/11/18/arts/design/portrait-auction-record-klimt-sothebys.html
1•paulpauper•16m ago•0 comments

Is AI a Bubble? Not So Fast

https://www.thefp.com/p/is-ai-a-bubble-not-so-fast
1•paulpauper•17m ago•1 comments

Twenty Years of Django Releases

https://www.djangoproject.com/weblog/2025/nov/19/twenty-years-of-django-releases/
2•webology•17m ago•0 comments

Honeycomb Private Cloud

https://www.honeycomb.io/blog/introducing-honeycomb-private-cloud
1•gpi•17m ago•0 comments

The Drummers of Stoner Rock

https://www.jimdero.com/OtherWritings/OtherStonersMD.htm
2•scaglio•18m ago•0 comments

Wall Street Is Paywalling Your Kids' Sports

https://www.levernews.com/wall-street-is-paywalling-your-kids-sports/
2•ilamont•18m ago•0 comments

I'd run down the road thinking I was God: a day at the cannabis psychosis clinic

https://www.theguardian.com/society/2025/nov/16/cannabis-users-psychosis-clinic-london
1•mellosouls•19m ago•0 comments

Broccoli Man, Remastered

https://mbleigh.dev/posts/broccoli-man-remastered/
1•mbleigh•19m ago•0 comments

Netherlands returns control of Nexperia to Chinese owner

https://www.bloomberg.com/news/articles/2025-11-19/dutch-hand-back-control-of-chinese-owned-chipm...
11•boovic•19m ago•1 comments

Autodesk Introduces AI Transparency Cards for AI Features

https://www.autodesk.com/trust/trusted-ai/ai-transparency-cards
2•skobux•20m ago•0 comments

To Launch Something New, You Need "Social Dandelions"

https://www.actiondigest.com/p/to-launch-something-new-you-need-social-dandelions
5•curiouska•23m ago•0 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•6mo 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•6mo 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•6mo 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).