frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Three Weeks in a Village of Builders

https://www.edventures.co/edgecity
1•measurablefunc•2m ago•0 comments

Image Dithering in R (2019)

https://www.sumsar.net/blog/2019/01/image-dithering-in-r/
1•atan2•4m ago•0 comments

AI Agent Builder gives memory across voice, SMS, email, web chat and social

https://boldagents.co
4•howdoweknowit•5m ago•0 comments

Stardust Store – An independent Android app marketplace

2•zishutron•6m ago•0 comments

Self-hosting your own agent infrastrcuture (centaur)

https://www.youtube.com/watch?v=993XrWfg34U
1•bradwmorris•9m ago•1 comments

Countries 15x10 Pixel Flags

https://github.com/igor-couto/pixel-flags
1•lionello•12m ago•0 comments

A Vacuum Diode for Make: Magazine

https://www.nickpoole.me/2023/12/10/a-vacuum-diode-for-make-magazine/
1•luu•12m ago•0 comments

A Stealth Startup Thinks It Just Hacked the Memory Shortage

https://www.wired.com/story/a-new-dollar400-million-startup-wants-to-fix-the-ai-memory-bottleneck/
1•littlexsparkee•13m ago•0 comments

Show HN: Temporal Parser – A compiler-style parser for date/time strings

https://lxcid.com/tools/temporal-playground/
1•johnxie•14m ago•1 comments

A 'swarm' of AI agents hacked Hugging Face, in the AI's own words

https://www.abc.net.au/news/2026-09-11/how-openai-agents-hacked-hugging-face-messages-revealed/10...
1•grahameb•16m ago•0 comments

Show HN: Reviving my $15,000 browser arcade with Astra

https://eggverse.co/
1•Waseemkhalo•26m ago•0 comments

Show HN: Socks Proxy for AI Agents

https://x402socks.com/
1•rnts08•26m ago•0 comments

Anthropic details how Claude was misused for surveillance and weapons

https://thenextweb.com/news/anthropic-claude-misuse-threat-intelligence-report
4•delichon•28m ago•0 comments

Turn Your Data into a Video

https://www.racecharts.io/
1•ijidak•28m ago•0 comments

INDUS-SDE: A Language Model for Scientific Content Curation and Discovery

https://science.data.nasa.gov/blog/indus-sde-language-model
1•sudobear•29m ago•1 comments

Steam's Programming Fest

https://store.steampowered.com/category/programming
3•embedding-shape•31m ago•0 comments

Portal 2 Beta Decompilation

https://github.com/apersonwhomakesstuff/Portal-2-Beta-Decompilation/tree/main
2•apersonwhomakes•34m ago•2 comments

Chick-Fil-A Sauce Flavored Waffle Potato Chips

https://www.chick-fil-a.com/menu/sides/chick-fil-a-sauce-flavored-waffle-potato-chips
1•SpyCoder77•35m ago•0 comments

ASCII arcade: 3D engine for the terminal

https://ascii-arcade.dev
1•cramforce•35m ago•1 comments

A Decent GPU for FreeBSD and OpenBSD (2023)

https://medium.com/@martin.baulig/a-decent-gpu-for-freebsd-and-openbsd-ee82e6ff219a
1•turtleyacht•35m ago•0 comments

Generative AI Using Linuxulator and eGPU on FreeBSD

https://www.tumfatig.net/2026/generative-ai-using-linuxulator-and-egpu-on-freebsd/
2•turtleyacht•36m ago•0 comments

Sean Carroll explains the biggest ideas in the universe – Full Interview [video]

https://www.youtube.com/watch?v=_TBNJyztai0
4•binyu•37m ago•1 comments

A $537 Local LLM Machine (2025)

https://blog.lewman.com/a-537-local-llm-machine.html
3•turtleyacht•37m ago•0 comments

Synapse – Daily Word Game

https://synapse.akshayr.xyz/
1•barbierocks•38m ago•1 comments

Russia trafficking foreigners to fight in Ukraine, Amnesty says

https://www.courthousenews.com/russia-trafficking-foreigners-to-fight-in-ukraine-amnesty-says/
5•MilnerRoute•40m ago•0 comments

The Confused Engineer

https://thebsq.com/the-confused-engineer/
3•ahofma•41m ago•1 comments

M. Williams, OpenAI: Human extinction in the next few years seems likely

https://xcancel.com/antibot/captcha
7•doener•42m ago•1 comments

Show HN: PRBar see your open GitHub PR count in macOS menu bar

https://github.com/sburl/prBar
1•sburl•43m ago•1 comments

The Chasm: The Shape of Unfinished AI Codebases

https://jimmyhmiller.com/shape-of-unfinished-ai-codebases
1•gmays•44m ago•0 comments

AI researchers leave Anthropic and Google: 'There are no adults in the room'

https://www.nbcnews.com/tech/security/two-ai-researchers-leave-anthropic-google-safety-concerns-r...
9•doener•45m ago•0 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).