frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: I built a language learning movie app

https://kanjieight.vercel.app/
1•Mikecraft•1m ago•0 comments

How to Synthesize a House Loop

https://loopmaster.xyz/tutorials/how-to-synthesize-a-house-loop
1•stagas•5m ago•0 comments

Morgan Stanley Warns Oracle Credit Protection Nearing Record High – Above 2008

https://www.bloomberg.com/news/articles/2025-11-26/morgan-stanley-warns-oracle-credit-protection-...
2•zerosizedweasle•5m ago•1 comments

DARPA Lift Challenge

https://www.darpa.mil/news/2025/lift-challenge
1•T-A•8m ago•0 comments

Deploying a back end on UpCloud without containers or orchestration (demo video

https://youtu.be/OpRDVpvT5Ak?si=rVUcSk4iKP2yIxAR
1•Nimer•10m ago•1 comments

How to Create an Effective Prompt for Nano Banana Pro

https://www.radicalcuriosity.xyz/p/how-to-create-an-effective-prompt
2•simonebrunozzi•11m ago•0 comments

Show HN: I built a tool to help find profitable creator niches

https://www.clurly.com
1•marksaver•13m ago•0 comments

Bionic Limbs

https://www.bloomberg.com/news/audio/2025-11-20/bloomberg-businessweek-daily-bionic-limbs-podcast
2•I_Nidhi•17m ago•0 comments

NHS Open Source Policies – All Removed [video]

https://youtube.com/watch?v=dQqFNP39sKM
1•jesprenj•17m ago•2 comments

Bollock to GitHub

https://samthursfield.wordpress.com/2025/11/27/bollocks-to-github/
1•icar•19m ago•0 comments

Stripe had enough of fake 10k MRR posts

https://twitter.com/stripe/status/1993382198851100733
2•marcelbundle•20m ago•0 comments

Show HN: Unified memory across all LLMs

https://hiperyon.com/
1•Ambroise75•20m ago•0 comments

Click to call no longer working (tell:) (on desktop)

https://support.google.com/chrome/thread/214777576/click-to-call-no-longer-working?hl=en
1•chagaif•25m ago•1 comments

Old PC

https://old-pc-x.vercel.app
2•Areibman•29m ago•0 comments

URL in C Puzzle

https://susam.net/url-in-c.html
2•birdculture•36m ago•0 comments

Finding the grain of sand in a heap of Salt

https://blog.cloudflare.com/finding-the-grain-of-sand-in-a-heap-of-salt/
1•privacyops•38m ago•0 comments

Is psql's scripting language Turing complete? Or: Fibonacci in psql

https://www.enterprisedb.com/blog/psqls-scripting-language-turing-complete-or-fibonacci-psql
2•ingve•39m ago•0 comments

DNS Firewalling with MISP and Technitium DNS Server

https://zaferbalkan.com/technitium-misp/
3•feldrim•41m ago•2 comments

Ray Marching Soft Shadows in 2D

https://www.rykap.com/2020/09/23/distance-fields/
8•memalign•48m ago•0 comments

Git commit-based annual performance reviewer [video]

https://youtube.com/shorts/9OpklP_TtCY
1•javaskrrt•48m ago•0 comments

You Are Insignificant. That's a Good Thing

https://www.joanwestenberg.com/p/you-are-insignificant-that-s-a-good-thing
4•gpi•53m ago•0 comments

The High Price of Environmental Responsibility

https://rodgercuddington.substack.com/p/the-high-price-of-environmental-responsibility
2•freespirt•55m ago•1 comments

An LED panel that shows the aviation around you

https://github.com/AxisNimble/TheFlightWall_OSS
1•yzydserd•57m ago•0 comments

Artificial muscles, or Robotics 2.0 (RU) (Anthropomorphic robotics)

https://habr.com/ru/articles/969722/
1•chromoblob•59m ago•1 comments

iPhone Fold Will Be Creaseless and Cost $2,400, Report Says

https://www.cnet.com/tech/mobile/iphone-fold-will-be-creaseless-and-cost-2400-report-says/
1•thunderbong•59m ago•0 comments

Generative UI: A rich, custom, visual interactive user experience for any prompt

https://research.google/blog/generative-ui-a-rich-custom-visual-interactive-user-experience-for-a...
1•pramodbiligiri•1h ago•0 comments

Ask HN: Ever done large contract work?

3•ripped_britches•1h ago•1 comments

Meditation as Wakeful Relaxation: Unclenching Smooth Muscle

https://psychotechnology.substack.com/p/meditation-as-wakeful-relaxation
1•eatitraw•1h ago•0 comments

Turn Claude threads into Notion-grade assets you can trust

https://claudeai2notion.aluo.app
1•chatgpt2notion•1h ago•0 comments

Immigrations: Gestiona Tu Visa LLC exposed 67GB of immigrant's data

https://medium.com/@newschu.substack.com/immigrations-gestiona-tu-visa-llc-exposed-67gb-of-immigr...
1•khyy_•1h 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).