frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Document parsing 5B tokens on a single CPU thread

1•jgfriedman1999•51s ago•0 comments

New York Times Company in Advanced Talks to Acquire Letterboxd

https://www.nytimes.com/2026/11/05/business/media/letterboxd-new-york-times-company.html
1•thm•3m ago•0 comments

How Australia played the first music on a computer

https://www.pearcey.org.au/heritage/csirac/how-australia-played-the-worlds-first-music-on-a-compu...
1•Skyfall106•5m ago•0 comments

Universal bidirectional NT/9x driver translation

https://github.com/NellInc/Janus
1•userbinator•10m ago•0 comments

A database is a store for global variables

https://www.seangoedecke.com/a-database-is-a-store-for-global-variables/
1•nettlin•14m ago•0 comments

How accurately did science fiction stories predict AI?

https://jamesyu.org/science-fiction-predictions-of-ai/
4•jamesjyu•15m ago•1 comments

Dynamic force sensing by bone delays aging and extends lifespan in mice

https://www.cell.com/cell-metabolism/fulltext/S1550-4131(26)00433-X
1•geox•18m ago•0 comments

Codetations: Rich, Granular, and Maintainable Annotations for Evolving Code

https://ztatlock.net/pubs/2026-uist-codetations/
1•matt_d•23m ago•0 comments

Stop Dirty Data Centres

https://stopdirtydatacentres.eu/
1•jruohonen•24m ago•0 comments

From Linux to Wikipedia: How Volunteers Build the Internet

https://thereader.mitpress.mit.edu/from-linux-to-wikipedia-how-volunteers-build-the-internet/
4•jonbaer•34m ago•0 comments

Servo Browser Engine Continues Broadening Web Compatibility, New Features

https://www.phoronix.com/news/Servo-0.7-Changes
1•qtqtqt•37m ago•1 comments

Personality traits are less stable than people think

https://www.nature.com/articles/s44271-026-00515-7
1•rohanm93•37m ago•0 comments

OpenSSH flaw lets attackers log into password-disabled Linux accounts

https://www.bleepingcomputer.com/news/security/openssh-flaw-lets-attackers-log-into-password-disa...
1•Skyfall106•40m ago•1 comments

Lilithbrown

1•HackerNewslilit•43m ago•0 comments

Lab-grown meat was supposed to save the world. What happened?

https://www.theguardian.com/news/ng-interactive/2026/nov/05/lab-grown-meat-save-the-world-food-re...
2•andsoitis•44m ago•0 comments

18 Years of GOG – Anniversary Showcase

https://www.gog.com/en/anniversary
2•SockThief•45m ago•0 comments

Bomb threats disrupt at least 25 flights across Europe, raising hybrid war fears

https://www.theguardian.com/world/2026/nov/05/bomb-threats-disrupt-flights-across-europe-and-rene...
3•andsoitis•50m ago•0 comments

US FAA says it will phase out floppy disks from air traffic control by 2028

https://www.reuters.com/world/us/us-faa-says-it-will-phase-out-floppy-disks-air-traffic-control-b...
3•ChrisArchitect•51m ago•1 comments

Apple Watch Live Rewind and Siri Recap: Features and Limitations

https://memova.ai/journal/apple-watch-live-rewind-siri-recap/
1•ViolaWang•56m ago•0 comments

Running MicroPython on the Allwinner T527's XuanTie E906 RISC-V Core

http://allthingsembedded.blogspot.com/2026/10/micropython-on-e906.html
1•tcmichals•56m ago•0 comments

Silicon Valley's Bad Night

https://www.theatlantic.com/technology/2026/11/americans-really-dont-like-data-centers-elections/...
23•ent101•57m ago•14 comments

AI and the Future of the Product Role

https://www.svpg.com/ai-and-the-future-of-the-product-role/
1•swolpers•58m ago•0 comments

Are We Cooked? CMU Faculty on AI, Careers and Learning [video]

https://www.youtube.com/watch?v=U2DDKdUvq6k
1•lmc•58m ago•0 comments

Meta Warns Midterm Backlash Threatens AI Data Centers

https://epyhia.com/meta-warns-midterm-backlash-threatens-ai-data-centers-goldman-sees-45
3•arbuge•1h ago•0 comments

Letterboxd in Negotiations to Be Acquired by New York Times Company

https://variety.com/2026/digital/news/letterboxd-negotiations-new-york-times-1236940881/
2•cdrnsf•1h ago•0 comments

Move fast and don't break (safety critical) things

https://bscholl.substack.com/p/move-fast-and-dont-break-safety-critical
3•gmays•1h ago•1 comments

Claude Code, but for SEO

https://twitter.com/brodieseo/status/2118299596292305356
11•brodieclark•1h ago•2 comments

Queen's University Belfast students find Neptune's elusive Trojan asteroids

https://phys.org/news/2026-11-queen-university-belfast-students-neptune.html
1•Skyfall106•1h ago•1 comments

Native macOS storage monitor with an interactive disk explorer

https://github.com/nglippa/storage-checker
1•busterbuilds•1h ago•0 comments

DApp's Numbers, with the Working Shown

https://github.com/globalmpc/rwa-kit-js
4•A_Jblessing•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).