frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

1•hulin•16s ago

Lightning.ai October 2026 Security Incident

https://lightning.ai/security-incident/
1•indigodaddy•1m ago•0 comments

Ask HN: Can superintelligent AI alignement be decentralized?

1•julienreszka•5m ago•2 comments

How Much Computation Do We Get from Every Byte We Move?

https://medium.com/hzlms/hzlms-6-how-much-computation-do-we-get-from-every-byte-we-move-814fef063771
1•asbassan•5m ago•0 comments

Oregon Police Are Charging a Local News Outlet $2.5M for Records About One Cop

https://theintercept.com/2026/10/01/oregon-police-misconduct-public-records-cost-fee/
3•tdeck•6m ago•0 comments

AI Boom Looks a Lot Like the Housing Bubble

https://www.nytimes.com/2026/10/25/opinion/ai-bubble-financial-crisis-lehman.html
3•saikatsg•9m ago•0 comments

Show HN: Overengineered Monkeytype for Developers

https://www.osd-typ.in/
1•itsarnavsh•9m ago•0 comments

Fine-tuned Qwen on my 16gb GPU to respond without the letter e

https://kevin-wu.ca/blog/qwn/
1•k33wu•10m ago•0 comments

Elisp – Advantages of setting variables with setq instead of custom.el?

https://emacs.stackexchange.com/questions/102/advantages-of-setting-variables-with-setq-instead-o...
1•Tomte•12m ago•0 comments

Bringing the Russian Woodpecker's Computer Back to Life [video]

https://www.youtube.com/watch?v=HUn3h4B5H14
1•fortran77•12m ago•0 comments

The penguins are noisy, the people fantastic – being an Antarctic postmaster

https://www.bbc.co.uk/news/articles/c6dxwklr409eo
1•mellosouls•13m ago•0 comments

Inhouseticket Like ClickUp and Jira

https://inhouseticket.com
1•herrlen•13m ago•0 comments

The Hidden Economy of Your Internet Connection

https://spur.us/blog/hidden-economy-residential-proxies
1•m-hodges•14m ago•0 comments

Flint · free browser streaming software for Twitch, an OBS alternative

https://flint.cam/
2•xnx•16m ago•0 comments

Remixing Music to Treat Alzheimer's

https://jajoo.sh/gamma
1•jajoosam•17m ago•0 comments

MagicaVoxel

https://ephtracy.github.io/
1•evo_9•17m ago•0 comments

Ask HN: What is the main bottleneck facing Agentic AI today?

2•Francis221•17m ago•1 comments

Analyzing Emacs News: 564 posts over 11 years

https://sachachua.com/blog/2026/10/analyzing-emacs-news/
1•srijan4•22m ago•0 comments

Micron skipping planned NAND generation

https://www.blocksandfiles.com/flash/2026/10/22/micron-skipping-planned-nand-generation/5304729
1•rbanffy•22m ago•0 comments

Ask HN: Mined crypto on Azure when I was 13, after 12y still cannot open account

1•realaccfromPL•26m ago•0 comments

Learning to Be Me (1990) [pdf]

https://gwern.net/doc/fiction/science-fiction/1995-egan.pdf
3•zahrevsky•26m ago•1 comments

If You're So Smart, Then Why Are You So Poor? Russia's 1990s Revisited

https://ninabyzantina.com/2015/11/19/if-youre-so-smart-then-why-are-you-so-poor-russias-1990s-rev...
1•g1184•27m ago•1 comments

FirstTake – an open-source Claude Code skill for video shoots, offload to master

https://github.com/emersonsklar/firsttake
1•emersonsklr•29m ago•0 comments

Replace Jupyter Notebook with Emacs Org Mode (2023)

https://michaelneuper.com/posts/replace-jupyter-notebook-with-emacs-org-mode/
1•Tomte•35m ago•0 comments

How we made our MMDB files a 33% smaller

https://ipinfo.io/blog/how-made-mmdb-files-smaller
2•mmaia•37m ago•0 comments

I refuse to accept a censored Internet. Join Me at FOSDEM 27

https://talkweb.eu/openweb/4558/
74•Tomte•39m ago•6 comments

Fuck Nuance (2015)

https://crookedtimber.org/2015/08/31/fuck-nuance/
9•bariumbitmap•44m ago•1 comments

Show HN: AppNetPlotter – See how your Windows apps' connections are performing

https://github.com/winnie264/AppNetPlotter
1•suwapat•44m ago•0 comments

Show HN: A roguelike game with Vim motions and a "modal shotgun"

https://sebastiancarlos.github.io/hacker-fables-game/
1•httbs•47m ago•0 comments

ContextPod

https://chromewebstore.google.com/detail/contextpod-move-ai-chats/dgchalabofdmnpkfocaiijcnbkgkpkhd
1•sahilitup•49m ago•1 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

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