frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: Readability API – Unrender

https://unrender.page/
1•zintus•1m ago•1 comments

My Grandma Was a Fed – Lessons from Digitizing Hours of Childhood

https://sampatt.com/blog/2025-12-13-my-grandma-was-a-fed-lessons-from-digitizing-hundreds-of-hour...
1•SamPatt•7m ago•0 comments

Show HN: I built a free, open-source macOS screen recorder with modern features

https://github.com/jsattler/BetterCapture
1•jsattler•7m ago•0 comments

RFC 3092 – Etymology of "Foo" (2001)

https://datatracker.ietf.org/doc/html/rfc3092
1•ipnon•8m ago•0 comments

Prove_it – Force Claude to verify its work

https://github.com/searlsco/prove_it
1•mooreds•8m ago•0 comments

Benchmarking On-Device LLMs on iPhone and iPad Using MLX

https://rickytakkar.com/blog_russet_mlx_benchmark.html
1•nullnotzero•11m ago•0 comments

Matthew Perry and Jennifer Aniston Did an Advert for Windows 95 [video]

https://www.youtube.com/watch?v=7q1hDDtJAN8
1•megamike•15m ago•0 comments

We tested a transport app that cost the public £4M against Google Maps

https://www.bbc.co.uk/news/articles/c9wx97jv7qeo
1•mmarian•17m ago•0 comments

Introduction to Abject-Oriented Programming (2007)

https://typicalprogrammer.com/introduction-to-abject-oriented-programming
2•simonpure•18m ago•0 comments

Boil the Ocean

https://garryslist.org/posts/boil-the-ocean
3•alexpogosyan•18m ago•0 comments

Show HN: I built an open-source Gmail productivity app that auto-labels emails

https://github.com/Lakshay1509/NeatMail
1•mafia15•20m ago•0 comments

AI fatigue Is real and nobody talks about it

https://siddhantkhare.com/writing/ai-fatigue-is-real
2•sidk24•20m ago•2 comments

Takaichi leads LDP to crushing victory in Japan election

https://www.ft.com/content/0456cd13-8eda-40fd-90f3-b16d986e50ad
1•mmarian•22m ago•0 comments

Sidecar – your AI-accelerated development workflow in one shell [video]

https://www.youtube.com/watch?v=5QZxWmDl_tc
1•kingforaday•24m ago•1 comments

Chinese CXMT and YMTC increace output with new fabs amidst shortage

https://economy.ac/news/2026/02/202602287605
1•TEHERET•26m ago•0 comments

Show HN: Breakpoints.cc – visual crypto price trajectory forecasts

https://breakpoints.cc
1•ewrwerwerwR•27m ago•0 comments

I am happier writing code by hand

https://www.abhinavomprakash.com/posts/i-am-happier-writing-code-by-hand/
1•lazyfolder•28m ago•0 comments

AzoBiPy – stable organic redox flow battery compound

https://nouvelles.umontreal.ca/en/article/2026/02/04/saving-sunny-days-for-a-rainy-day-a-new-mole...
1•imhoguy•28m ago•1 comments

Why don't jet engines melt? [video]

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

All in One YouTube Toolkit for faceless channels

https://viralvelocity.app/
1•coreycascio•29m ago•2 comments

Teaching Computers to Laugh

1•denkern•30m ago•0 comments

Exploring a Modern Smtpe 2110 Broadcast Truck

https://www.jeffgeerling.com/blog/2026/exploring-a-modern-smpte-2110-broadcast-truck-with-my-dad/
1•assimpleaspossi•30m ago•0 comments

ToolFK is a world-leading online toolkit for developers

https://www.toolfk.com/
1•zhouhua•31m ago•0 comments

Authentically Authoring: Maintaining a 300k-word sci-fi world without AI slop

https://ellerushing.com/elles-blog/authentically-authoring-ai-slop
1•kpinkerman•36m ago•3 comments

Running Your Own As: BGP on FreeBSD with FRR, GRE Tunnels, and Policy Routing

https://blog.hofstede.it/running-your-own-as-bgp-on-freebsd-with-frr-gre-tunnels-and-policy-routing/
2•todsacerdoti•37m ago•0 comments

A Security Site

https://asecuritysite.com/
1•ubavic•37m ago•0 comments

Deep Dive into Hierarchical Navigable Small Worlds (HSNW)

https://amandeepsp.github.io/blog/hnsw/
2•amandeepspdhr•38m ago•0 comments

Show HN: Verification-first workflow plugin for Claude Code

https://github.com/doodledood/manifest-dev
1•doodledood•38m ago•0 comments

Falcons Flight – Longest, Tallest and Fastest Roller Coaster

https://sixflagsqiddiyacity.com/en/explore/rides/falcons-flight
1•thunderbong•39m ago•0 comments

The Little Learner: A Straight Line to Deep Learning

https://mitpress.mit.edu/9780262546379/the-little-learner/
1•AlexeyBrin•39m ago•0 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

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