frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: NateUI, React components where the theme changes the whole look

https://nateui.com
1•NateLeong•3m ago•0 comments

Show HN: MCP server to Make LLMs duel

1•v-yanakiev•3m ago•0 comments

Compression Is All You Need: Modeling Mathematics(March 2026)

https://arxiv.org/abs/2603.20396
1•nill0•4m ago•0 comments

Why your brain is still busy when your calendar is empty

https://centralintelligence.com/blog/why-your-brain-is-still-busy-when-your-calendar-is-empty
1•hansmorano•8m ago•0 comments

Proofs, Programs, and Comprehensibility

https://proofsandprompts.com/2026/11/27/proofs-programs-and-comprehensibility/
1•nill0•8m ago•0 comments

Hair dye that turns your head into a brain-computer interface

https://www.tomshardware.com/peripherals/wearable-tech/hair-dye-that-turns-your-head-into-a-brain...
2•Brajeshwar•10m ago•1 comments

The Korean streamer's iPhone Duo cracked in real time

https://www.reddit.com/r/iPhoneDuo/comments/1y7gdu7/the_streamers_iphone_duo_cracked_in_real_time/
1•mot2ba•13m ago•0 comments

Show HN: The Silent Healing Room, a silent page with someone present

https://1heal.org/silent-healing-room.html
1•robius•15m ago•0 comments

Four frontier LLMs audit each other's "safety" hypocrisy [video]

https://www.youtube.com/watch?v=xysaflmyi4E
1•voidworldlet•15m ago•0 comments

From the Holodomor to Today: Moscow's Continuing War on Ukrainian Nationhood

https://www.kyivpost.com/opinion/91498
2•dotcoma•15m ago•0 comments

The M4 Earthquakes Induced by the Quest Carbon Capture and Storage Project

https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2026GL126186
1•PaulHoule•18m ago•0 comments

Which city do you live in?

2•Eyyup•19m ago•3 comments

Memorando Vazado: Desliguei Vocês Sem Encostar Em Nada

https://skynet.blog.br/memorando-vazado-desliguei-voces-sem-encostar-em-nada
1•singularis•22m ago•0 comments

Show HN: Whois Client with RDAP Support

https://github.com/rmoriz/whois
1•rmoriz•25m ago•0 comments

The Patch Window Closed. Now What?

https://nerdstein.net/blog/patch-window-closed/
1•RickJWagner•26m ago•0 comments

Show HN: Ashareeri – Open-source civic, road and live radar map for Kerala

https://ashareeri.tinkeringdao.dev
2•tinkeringdao•27m ago•0 comments

Early Warning for Banks, Checked Against Their Own Numbers – Amiri Agent

https://medium.com/@sankeerthan.kasilingam/early-warning-for-banks-checked-against-their-own-numb...
1•sankeerthan•29m ago•0 comments

LangChain DevContainer

https://github.com/langchain-ai/langchain/tree/master/.devcontainer
1•jdmsal•31m ago•1 comments

Show HN: Figma rejected our plugin, so we open-sourced it

https://www.youtube.com/watch?v=0GuADEBqbYA
1•saccodd•31m ago•0 comments

Atlas finds hints of the hidden structure of the vacuum

https://phys.org/news/2026-11-atlas-hints-hidden-vacuum.html
2•rbanffy•31m ago•0 comments

Language Models Can Rewrite Their Own Weights

https://www.jiajunfan.com/projects/self-rewriting/
1•simonpure•34m ago•0 comments

Ask HN: Is anyone using Gemini Live (3.8) in scaled production

1•aenis•36m ago•0 comments

OpenAI counter-sues Apple over alleged theft of trade secrets

https://www.bbc.com/news/articles/cm15ekqvlezeo
2•pluc•37m ago•0 comments

Empress Wu Zetian Ruled China Through Blood and Reform

https://www.thecollector.com/empress-wu-zetian-transformed-china-blood-reform/
1•Tomte•38m ago•0 comments

The Comfortable Life Is Killing You

https://poeticoutlaws.substack.com/p/the-comfortable-life-is-killing-you
4•erenon•39m ago•1 comments

What Computers Can't Do, a Critique of Artificial Reason (1972) [pdf]

https://monoskop.org/images/c/ce/Dreyfus_Hubert_What_Computers_Cant_Do_A_Critique_of_Artificial_R...
2•jacquesm•39m ago•0 comments

FCC approves 1M SpaceX data centers in space. Astronomers are dismayed

https://www.washingtonpost.com/technology/2026/11/26/fcc-approves-1-million-spacex-data-centers-s...
5•bookofjoe•40m ago•2 comments

IBM MVS 3.8 Community Edition (52-year old OS)

https://github.com/MVS-sysgen/sysgen
2•emersonrsantos•43m ago•1 comments

My AI-Voice I am the F AI voice assistant

https://github.com/FLEYRULLET/FLEYRULLET
1•GIRLBOY•46m ago•0 comments

Show HN: BMXt – Drive the browser via command line and cross-browser WebRTC

https://bmxt.diozy.net/
1•unrsports•47m 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).