frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Citroën Hydraulic System

https://www.citroenet.org.uk/miscellaneous/hydraulics/hydraulics-1.html
1•o4c•21s ago•0 comments

World records six straight days above 2C warming threshold

https://www.guardian.co.tt/news/world-records-six-straight-days-above-2c-warming-threshold-6.2.27...
1•asphodele•4m ago•0 comments

Necrometer – Zero-back end Rust/WASM audit for GitHub repo decay

https://necrometer.dev
1•jeryd•17m ago•0 comments

Show HN: Sqrin – A better screen share for Mac

https://sqrin.app
1•stichoza•17m ago•0 comments

Melbourne’s safe injecting room is one of the world’s busiest.

https://theconversation.com/melbournes-safe-injecting-room-is-one-of-the-worlds-busiest-the-liber...
1•defrost•18m ago•0 comments

Trying /Swarm in Google Antigravity

https://flaviocopes.com/antigravity-swarm/
1•gmays•19m ago•0 comments

Jakarta EE 11 No Longer Has an Umbrella Jar

https://foojay.io/today/jakarta-ee-11-umbrella-jar/
1•lprimak•20m ago•0 comments

No-Boilerplate, Warning-Free and Reproducible Builds on Maven 4

https://foojay.io/today/no-boilerplate-maven-4-builds/
1•lprimak•20m ago•0 comments

Upgraded Immich to Postgres 19 and VectorChord 1.5.0, works great

https://www.reddit.com/r/immich/comments/1y4ulvq/upgraded_immich_to_postgres_19_and_vectorchord/
2•lprimak•21m ago•0 comments

Gleam Case Exhaustiveness, as a Fan

https://oyster.pckt.blog/gleam-case-exhaustiveness-as-a-fan-fd4whyp
1•TheWiggles•23m ago•0 comments

Linus Torvalds: "Tell Your AI Companion to Get Its Act Together"

https://www.phoronix.com/news/Linus-Torvalds-EXT4-AI-Big
8•droidjj•24m ago•0 comments

New AI research suggests AI bubble bursting and to expect major market collapse

https://www.london.edu/think/ai-bubble-about-to-burst
1•nreece•26m ago•0 comments

Ask HN: What do you think of AI powered universal mind control?

1•analog8374•37m ago•3 comments

Sleep (Album)

https://en.wikipedia.org/wiki/Sleep_(album)
2•Ariarule•41m ago•0 comments

My context engineering changed for Gemini 4 Neon

https://www.philschmid.de/gemini-4-neon-context-engineering
3•gmays•48m ago•1 comments

Ayn Rand Scores the Alexander-Pinker Brawl

https://hollisrobbinsanecdotal.substack.com/p/ayn-rand-scores-the-alexander-pinker
2•HR01•51m ago•0 comments

Have they solved p vs. NP?

https://havetheysolvedpvsnp.com/?lang=en
2•akliemke•52m ago•0 comments

Every Layer Removes a Reading

https://aguilar-pelaez.co.uk/every-layer-removes-a-reading.html
1•pombo•56m ago•0 comments

Safe Studio: Visual Basic for the Web in 2027. (Happy Thanksgiving Everyone)

https://github.com/SafeScript/studio
2•EGreg•57m ago•1 comments

Show HN: EarthCiv – Civ-style maps of real countries, on one world map

https://earthciv.org
1•manpreetsgarha•1h ago•0 comments

Show HN: Brand logos as SVG/PNG with CDN links and light/dark variants

https://radianui.com/resources/brand-logos
1•Ashmit72•1h ago•0 comments

An Agentic Driven Operating System Source Code

https://github.com/vahmoh/Veda
1•saeedmh10k•1h ago•0 comments

Against the International Oligarchy

https://parismanifesto.world/en/
5•HotGarbage•1h ago•0 comments

Show HN: GravityFinder – Explore Exoplanets and More

https://gravityfinder.com
3•Trommsdorff•1h ago•0 comments

Measuring and mitigating agent sandbox escape with Siren

https://safeguards.anthropic.com/2026/siren/
2•gmays•1h ago•0 comments

Omarchy 4.6 Released with More Local AI Integration, Its Own File Manager

https://www.phoronix.com/news/Omarchy-4.6-Released
6•mikece•1h ago•0 comments

Minecraft's Reclusive Creator Has a Proposition for Anthropic

https://www.businessinsider.com/minecraft-creator-markus-persson-has-a-proposition-for-anthropic-...
3•andsoitis•1h ago•2 comments

Show HN: Pardon Me – a Thanksgiving game where you're the turkey

https://pardonme.shiptiffin.app
1•bilater•1h ago•0 comments

A Brief Walk Through Program Space: Agents and edge-case-driven development

https://neilmacintyre.com/posts/walks-in-program-space/
1•neil_macintyre•1h ago•0 comments

The Cutthroat Business of Shipwrecks

https://daily.jstor.org/the-cutthroat-business-of-shipwrecks/
3•herbertl•1h 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).