frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Bill Gates Has Earned Billions Investing in Climate-Polluting Landfills

https://www.propublica.org/article/bill-gates-republic-landfill-methane-pollution
1•jamesgill•27s ago•0 comments

The Telephone Changed the World

https://lithub.com/how-the-telephone-changed-the-world/
1•NaOH•3m ago•0 comments

RFC 10008: The HTTP Query Method

https://www.rfc-editor.org/rfc/rfc10008.html
1•tambourine_man•4m ago•0 comments

Honest-tests – detect fake tests and prove them with mutation testing

https://github.com/mintwork/honest-tests
1•mintworks•6m ago•0 comments

L3Harris Statement on the Nov. 13 Ground Stop

https://www.l3harris.com/newsroom/press-release/2026/11/l3harris-statement-nov-13-ground-stop
1•taspeotis•8m ago•0 comments

The Healthcare System. Or whatever you call it

https://davebarry.substack.com/p/the-healthcare-system
1•ZeroCool2u•9m ago•0 comments

Duality of Quadrilaterals via Quaternions [pdf]

https://scholarworks.uni.edu/cgi/viewcontent.cgi?article=1193&context=surp
1•teleforce•10m ago•0 comments

Brave removes tracking metadata from Instagram and Facebook photos

https://brave.com/privacy-updates/40-remove-tracking-metadata/
3•skaul•13m ago•0 comments

Critical infrastructure cyber protection is 'priority work'–but takes a year

https://www.rnz.co.nz/news/politics/2605865/cyber-protection-of-critical-infrastructure-is-priori...
4•billybuckwheat•13m ago•0 comments

The Nord Stream Prosecution: Immunity, Military Objectives, and Superior Orders

https://www.justsecurity.org/163881/germany-ukraine-nord-stream-prosecution/
1•everybodyknows•14m ago•0 comments

A look inside OpenAI's recent Proof of Yang-Mills Existence [video]

https://www.youtube.com/watch?v=s_9sCVqKQjY
1•HotHotLava•21m ago•1 comments

US Land Value Tax Progress in just 2 years

https://substack.com/@reedschwartz/note/c-383850504
1•JimmyBuckets•22m ago•0 comments

AI Quest – Interactive sandboxes for agentic web apps

https://ai-quest.dev/
1•quentinmerle•25m ago•0 comments

The Chinese spy allegation that toppled Nvidia's CEO is starting to look shaky

https://www.businessinsider.com/intelligence-jensen-huang-downfall-shaky-nvidia-china-spy-gpus-20...
6•cpncrunch•25m ago•2 comments

Jensen Huang Resigns After Having Another Affair in Addition to the Chinese Spy

https://thezvi.substack.com/p/jensen-huang-resigns-after-having
1•paulpauper•29m ago•0 comments

Stephen Kovacevich, a Pianist of Quiet Intensity, Has Died

https://www.nytimes.com/2026/11/13/arts/music/stephen-kovacevich-dead.html
2•paulpauper•30m ago•0 comments

Privatize Air Traffic Control, Redux

https://marginalrevolution.com/marginalrevolution/2026/11/privatize-air-traffic-control-redux.html
1•paulpauper•31m ago•0 comments

Nvidia deliberately kept GPU prices high through circular financing deals

https://www.techspot.com/news/114558-nvidia-deliberately-kept-gpu-prices-high-through-circular.html
5•madihaa•33m ago•1 comments

Mainline Linux and blob-free userspace for the Yi 2K Pro WiFi camera

https://github.com/k0tletki/y623-mainline
1•mrrpmepmew•33m ago•0 comments

Are we building multi-agent systems without a proper trust layer?

https://www.sinapsdata.com.br/en
3•sadrk•36m ago•0 comments

How did Woz write the Apple 1 BASIC before building the computer?

https://retrocomputing.stackexchange.com/questions/17957
2•Skyfall106•37m ago•0 comments

Uber's Labor Crash

https://pluralistic.net/2026/11/12/starvation-wages/
4•hn_acker•39m ago•0 comments

Music by Kevin MacLeod

https://incompetech.com/music/royalty-free/music.html
3•sonicrocketman•40m ago•0 comments

Dedicated Nvidia GPU, on Your Mac

https://gpushed.dev/
1•mehfuzh•41m ago•2 comments

Everything is a plugin (to the model context)

https://github.com/deepseek-ai/deepseek-harness
2•emrah•41m ago•0 comments

Mullvad VPN – Privacy is for the people

https://mullvad.net/en
20•doener•46m ago•5 comments

Show HN: Infinite Shaders

https://shaderfrog.com/infinite
1•andrewray•48m ago•0 comments

Show HN: Omnistew - 3D multiplayer RTS inspired by Risk, playable in a browser

https://omnistew.io/
1•omnistew•49m ago•1 comments

US floated idea of Ukraine swapping land for NATO membership, Zelensky says

https://www.cnn.com/2026/11/14/europe/us-ukraine-zelensky-nato-intl
6•MilnerRoute•55m ago•4 comments

EnvOpt: Automated Optimization for Agent Environments

https://bespokelabs.ai/blog/envopt
2•matt_d•57m 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).