frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Mystery foot belongs to ancient human relative

https://www.france24.com/en/live-news/20251127-mystery-foot-belongs-to-ancient-human-relative-sci...
1•gmays•1m ago•0 comments

Show HN: Boing #2

https://boing.playcode.io
1•ianberdin•4m ago•0 comments

LLM – Unit Economics

https://robonomics.substack.com/p/llm-unit-economics
1•gmays•6m ago•0 comments

Tell HN: Happy LLM Day

1•christina97•7m ago•1 comments

Horizontal Volume Control in Apple Music – But Why?

https://iamvishnu.com/posts/horizontal-volume-control-apple-music
1•vishnuharidas•7m ago•0 comments

Show HN: Revolut for International Calls at cheap rates

https://callpronto.app
1•daolm•9m ago•0 comments

The Song of the Western Men

https://www.trelawnysarmy.org/ta/tawestmn.html
1•dash2•10m ago•0 comments

Why some memories last a lifetime while others fade fast

https://www.sciencedaily.com/releases/2025/11/251130050712.htm
1•saikatsg•10m ago•0 comments

New 3D scan reveals a hidden network of moai carvers on Easter Island

https://www.sciencedaily.com/releases/2025/11/251130050717.htm
1•saikatsg•11m ago•0 comments

Türkiye's Kızılelma writes history as it proves air-to-air capability

https://www.dailysabah.com/business/defense/turkiyes-kizilelma-writes-history-as-it-proves-air-to...
1•sahin•13m ago•0 comments

Africa's forests are now emitting more CO2 than they absorb

https://www.newscientist.com/article/2506287-africas-forests-are-now-emitting-more-co2-than-they-...
1•measurablefunc•17m ago•0 comments

It's time to lock in and let your winter arc begin

https://www.bbc.com/news/articles/cm2w79447vvo
3•jethronethro•22m ago•0 comments

Show HN: A fun password strength meter I made for my teenage kids and friends

https://passwordcat.top
2•wstaeblein•24m ago•0 comments

Ultimate Bug Scanner

https://github.com/Dicklesworthstone/ultimate_bug_scanner
1•latchkey•26m ago•0 comments

Norway may break up with Europe's power grid over soaring energy prices

https://www.euractiv.com/news/norway-may-break-up-with-europes-power-grid-over-soaring-energy-pri...
3•toomuchtodo•29m ago•1 comments

Self-Hosting Slides from Sli.dev

https://dev.shetty.me/blog/self-hosting-slides-from-slidev
2•deveesh_shetty•32m ago•0 comments

Ask HN: Are 98% of HN Readers Using AdBlock?

1•7777777phil•32m ago•2 comments

A Global Drive to Curb Social Media for Kids Begins in Australia

https://www.bloomberg.com/news/articles/2025-11-30/australia-s-world-first-social-media-ban-for-u...
2•toomuchtodo•32m ago•1 comments

Revideo: Create Videos with Code

https://github.com/redotvideo/revideo
1•walterbell•35m ago•0 comments

Documentation for Prompts

https://folio.benguzovsky.com/prompt-docs
3•BenGuz•38m ago•0 comments

Yore – Deterministic document indexer for large, agent-driven codebases

http://github.com/rahulrajaram/yore
1•progfan234•38m ago•1 comments

Can You Live a Normal Life in Cyberpunk 2077? [video]

https://www.youtube.com/watch?v=iu5Yfv7fZHk
1•DamnInteresting•42m ago•0 comments

Will Ireland's new alcohol warning labels turn people away from drinking?

https://www.bbc.com/news/articles/c2465lndrnno
3•linhns•44m ago•3 comments

Awesome-distributed-ML – A curated list for distributed [faster] LLM training

https://github.com/Shenggan/awesome-distributed-ml
2•peter_d_sherman•44m ago•0 comments

SRI and Arc: The Dawn of the Information Age

https://www.abortretry.fail/p/sri-and-arc
2•BirAdam•44m ago•0 comments

Should kidfluencers be banned? That's the plan in the EU

https://www.cbc.ca/news/business/eu-kidfluencer-ban-9.6994957
2•saubeidl•46m ago•0 comments

Show HN: We got 30 teens to build a hand made arcade in Tokyo

https://youtu.be/kkbf092Los0
2•devenj•50m ago•0 comments

LumeBiome

https://lumebiome.com/#aff=rayoggg
1•richieg•51m ago•0 comments

Show HN: Turn Any Website into Clean Markdown for LLMs/RAG with SiteOne Crawler

https://github.com/janreges/siteone-crawler
1•janreges•51m ago•0 comments

Stal/IX: declarative statically linked Linux distribution

https://stal-ix.github.io/
1•pshirshov•52m ago•1 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).