frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Testing Bitbake on Yocto 6.0.1 (Wrynose) LTS

https://inavoyage.blogspot.com/2026/07/testing-bitbake-on-yocto-601-wrynose-lts.html
1•initramfs•2m ago•0 comments

Possible evidence of literal prompt injection by Anthropic

https://old.reddit.com/r/LocalLLaMA/comments/1unif51/possible_evidence_of_literal_prompt_injectio...
1•theanonymousone•3m ago•0 comments

Skatt: How Tax Becomes Treasure in Sweden

https://quantshah.substack.com/p/skatt-how-tax-becomes-treasure-in
1•hibijibies•3m ago•0 comments

Getting started with zerostack, a Unix-like lightweight coding agent

https://github.com/gi-dellav/zerostack/blob/main/docs/GET_STARTED.md
2•gidellav•4m ago•0 comments

Better Models: Worse Tools

https://lucumr.pocoo.org/2026/7/4/better-models-worse-tools/
3•leemoore•4m ago•0 comments

A benchmark revealing an average memory-retrieval accuracy of 9%

https://zendoric.com/en/dia/2026-06-30/11
3•jflynt76•5m ago•0 comments

How AI is changing language

https://www.theguardian.com/books/ng-interactive/2026/jul/04/future-of-fiction-next-great-novel-a...
1•mellosouls•6m ago•0 comments

I built a environment reloader for Windows Shells

1•byjonas•7m ago•0 comments

Spotify Skip Tracker – Open-source Spotify analytics with skip tracking

https://github.com/Ulbjo/Spotify-Skip-tracker
1•Ulbjo•9m ago•0 comments

Conquest Impulse and Aesthetic Impulse

https://www.bitsofwonder.co/p/the-ordinary-and-the-special
1•jger15•9m ago•0 comments

Why Linux is not ready for the desktop (2024)

https://itvision.altervista.org/why.linux.is.not.ready.for.the.desktop.final.html
1•theanonymousone•10m ago•0 comments

Retrieval is not the future of AI – if it was, Google would have won already

1•lamprouge•11m ago•0 comments

Two new experimental MELPA channels

https://emacsair.me/2026/07/03/melpa-channels/
1•Amorymeltzer•15m ago•0 comments

Why I built gsx instead of just templ

https://jackieli.dev/posts/why-i-built-gsx/
1•jackielii•17m ago•0 comments

Xylem Surfactants Introduce a New Element to the Cohesion-Tension Theory(2017)

https://academic.oup.com/plphys/article/173/2/1177/6115978?login=false
1•rolph•18m ago•0 comments

Why implementing ActivityPub is hard, and why it doesn't have to be

https://hackers.pub/@fedify/2026/why-activitypub-is-hard
1•birdculture•22m ago•0 comments

Keeping Code Reviews from Dragging

https://www.sandordargo.com/blog/2026/06/03/making-reviews-actually-fast
2•locknitpicker•24m ago•0 comments

A 25 question trivia quiz for America's 250th birthday

https://usa250quiz-site.pages.dev/
3•seinvak•24m ago•0 comments

Show HN: Waypoint.nvim – A Neovim plugin for bookmarking lines of code

https://github.com/patrick-sharp/waypoint.nvim
3•patrick-sharp•25m ago•0 comments

Show HN: Infra Commits – Conventional Commits but for infrastructure/operations

https://codeberg.org/devopsguy/infra-commits
2•ohelm•25m ago•1 comments

Terraforming Warfare and International Law

https://opiniojuris.org/2026/02/25/terraforming-warfare-and-international-law/
1•bryanrasmussen•26m ago•0 comments

America's 250th Birthday because a test of Collective Intelligence

https://venturebeat.com/technology/how-americas-250th-birthday-became-a-test-of-ai-powered-collec...
2•bonkerbits•27m ago•0 comments

Show HN: Clipart.free – Public-Domain Clipart

https://clipart.free/
1•nadermx•28m ago•0 comments

Keep Your Skills Sharp the Hard Way

https://explainanalyze.com/p/keep-your-skills-sharp-the-hard-way/
2•sdevonoes•29m ago•0 comments

Miller 6.20.2: Miller and AI, bash/zsh tab-completion, bytes datatype

https://github.com/johnkerl/miller/releases/tag/v6.20.2
2•john_kerl•30m ago•0 comments

AI has torched the market for junior programmers

https://seldo.com/posts/ai-has-torched-the-market-for-junior-programmers/
40•cdrnsf•30m ago•35 comments

Floci: a fast, free, and open-source local AWS service emulator

https://floci.io/floci/
1•Tomte•35m ago•0 comments

Calculator built to teach/experiment with costing LLM chat apps

https://calc.ajinkya.ai/
1•csmonk•36m ago•0 comments

I ran an AI nuclear engineering department for a week

https://charlesazam.com/blog/ai-engineering-department/
1•couAUIA•37m ago•0 comments

RefCam Bayer Leverkusen vs. FC Bayern [video]

https://www.youtube.com/watch?v=5Nuf_Y-tBeI
2•mmarian•39m 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).