frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

AutoMondrian

https://bruceediger.com/automondrian.php
1•bookofjoe•5m ago•0 comments

New book details the epic story behind the fight to save Russia's Amur tigers

https://www.cnn.com/science/siberian-amur-tigers-between-empires-book-spc-c2e-hnk
1•breve•7m ago•0 comments

TabzChrome: Tmux terminals in your Google Chrome sidebar

https://github.com/GGPrompts/TabzChrome
1•handfuloflight•8m ago•0 comments

AI Agents vs. Pentesters

https://arxiv.org/abs/2512.09882
2•takira•8m ago•0 comments

Hideo Kojima wants you to remember his games for decades

https://www.cnn.com/2025/12/12/style/hideo-kojima-death-stranding-2-hnk-intl-dst
1•breve•10m ago•0 comments

The Problem of Teaching Physics in Latin America

https://calteches.library.caltech.edu/46/2/LatinAmerica.htm
1•rramadass•10m ago•1 comments

Show HN: Cardly – Manage, track, and get alerts for your gift card balances

https://cardlyai.app/
1•Pastaza•12m ago•1 comments

Knowledge Basing

https://thinkhuman.com/knowledge-basing/
2•jamesgill•13m ago•0 comments

Opus 4.5 is the first model that makes me fear for my job

https://old.reddit.com/r/ClaudeAI/comments/1pmgk5c/opus_45_is_the_first_model_that_makes_me_actua...
3•nomilk•17m ago•1 comments

Deplit

https://github.com/mdhruvil/deplit
1•handfuloflight•19m ago•0 comments

Ten Tips to Make Conference Talks Suck Less (2022)

https://www.morling.dev/blog/ten-tips-make-conference-talks-suck-less/
2•gunnarmorling•20m ago•0 comments

Is A.I. Actually a Bubble?

https://www.newyorker.com/culture/open-questions/is-ai-actually-a-bubble
1•Kaibeezy•20m ago•1 comments

The other wonders of the Ancient World

https://www.cartographerstale.com/p/the-other-wonders-of-the-ancient
1•Milhaud•21m ago•0 comments

Grok Is Glitching and Spewing Misinformation About the Bondi Beach Shooting

https://gizmodo.com/grok-is-glitching-and-spewing-misinformation-about-the-bondi-beach-shooting-2...
3•doener•22m ago•1 comments

Show HN: A meditation timer without guidance, music, or growth mechanics

https://www.centertimer.com
2•tannerc•27m ago•0 comments

15 Killed in Sydney attack at Jewish event

https://www.aljazeera.com/news/liveblog/2025/12/14/bondi-beach-shooting-live-two-in-custody-sydne...
3•SilverElfin•27m ago•0 comments

Show HN: Feedvote – A $149 lifetime alternative to Canny for Linear users

https://feedvote.app
1•youchen•29m ago•0 comments

Fungeoid

https://esolangs.org/wiki/Fungeoid
1•azhenley•29m ago•0 comments

So Many Websites

https://robinrendle.com/notes/so-many-websites/
1•robin_reala•30m ago•0 comments

List of Individual Body Parts

https://en.wikipedia.org/wiki/List_of_individual_body_parts
1•surprisetalk•32m ago•0 comments

From Network Effects to Cognitive Effects: The New Rules for Platform Dominance

https://www.forerunnerventures.com/perspectives/from-network-effects-to-cognitive-effects-the-new...
2•gmays•32m ago•1 comments

Essentials for Independent Travel in China

https://kevinkelly.substack.com/p/essentials-for-independent-travel
1•surprisetalk•32m ago•0 comments

Gijswijt's Sequence

https://en.wikipedia.org/wiki/Gijswijt%27s_sequence
2•surprisetalk•32m ago•0 comments

The Code That Revolutionized Orbital Simulation [video]

https://www.youtube.com/watch?v=nCg3aXn5F3M
2•surprisetalk•32m ago•0 comments

Show HN: Hacker News Christmas Colors Browser Extension

https://github.com/FreedomBen/hacker-news-christmas-colors-browser-ext
1•freedomben•32m ago•0 comments

Show HN: Chat with a Random AI

https://randomai.vercel.app/
1•borisandcrispin•35m ago•0 comments

Show HN: Nutriqs.ai-AI Social and Gamified Health Network

https://www.nutriqs.ai/
1•Go_Parvesh•38m ago•0 comments

Tenebris: Minecraft Meets Kerbal Space Program

https://ruben-tipparach.itch.io/tenebris
1•memalign•39m ago•0 comments

Tic Tac Toe Bot

https://bruceediger.com/ttt/
1•bookofjoe•41m ago•0 comments

Investors seek protection from risk of AI debt bust

https://www.ft.com/content/c5f9380e-df86-42a9-a387-a0d5e04ad45f
1•zerosizedweasle•43m ago•0 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

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