frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Master of Magic – An AmigaOS 68k port of a classic Microprose Strategy game

https://www.indieretronews.com/2026/12/master-of-magic-amigaos-68k-port-of.html
1•ibobev•26s ago•0 comments

Windows 11 on Arm for Rockchip RK3576 boards: open UEFI, Mali GPU driver

https://github.com/gahingwoo/woa-rk3576
1•milali•46s ago•0 comments

Ops Needs Friction

https://www.jeffgeerling.com/blog/2026/ops-needs-friction/
1•TanZeng•3m ago•0 comments

Show HN: EvenThen – Yet Another Timer

https://eventhen.pages.dev/
1•zerocinante•3m ago•0 comments

Database Zoo: pre-populated Docker images of OpenStreetMap regions and US states

https://www.baseshift.com/dbzoo
1•habeanf•4m ago•0 comments

AutoCAD-CS: Counter-Strike 1.6 running inside AutoCAD

https://github.com/mihonder/AutoCAD-CS/blob/staging/README.en.md
1•Diraan•4m ago•0 comments

VBulletin2Shell

https://vbulletin2shell.com/
1•dduarte•6m ago•0 comments

Billion-Scale Molecule Search Without Fingerprints or Embeddings

https://www.unum.cloud/blog/search-billion-molecules-without-embeddings
1•ashvardanian•8m ago•1 comments

Erector Set Inventor Inspired Kids' Inner Engineers

https://spectrum.ieee.org/erector-set-inventor
1•rbanffy•9m ago•0 comments

Firefox OS

https://en.wikipedia.org/wiki/Firefox_OS
1•ksec•9m ago•0 comments

Asbestos in the air: Russian strikes spark fears of hidden health crisis

https://www.bbc.com/news/articles/cmedqgwegjzqo
2•osivertsson•9m ago•0 comments

AWS Greenlight Uses Formal Logic to Constrain AI Agents

https://spectrum.ieee.org/aws-greenlight-formal-logic-agents
1•rbanffy•10m ago•0 comments

Advent of Code 2026 Solutions in LLVM IR and AMD64 ASM

https://github.com/rfgplk/aoc26
1•rfgplk•10m ago•0 comments

Google prepares Gemini 4 Live for public release this week

https://cryptobriefing.com/google-gemini-4-live-public-release/
1•yackrru•10m ago•0 comments

Command-line JSON filtering at 20 GB/s

https://lemire.me/blog/2026/11/25/command-line-json-filtering-at-20-gb-s/
1•Letterui•10m ago•0 comments

A Correctness Approach for Modern Systems Software

https://brooker.co.za/blog/2026/11/30/correctness.html
2•gavide•11m ago•0 comments

Flux holds a garment's detail: announcing TEXTUR 1 with Graswald AI

https://bfl.ai/blog/textur1-graswald
1•leumon•12m ago•0 comments

"Is he a biscuit man?" and other Parliamentary interruptions

https://members.rory.codes/
1•mrroryflint•13m ago•0 comments

Show HN: Stlify – photo to watertight, printable STL

https://stlify.ai
1•talkpixai•14m ago•0 comments

eBook Voice Player: AI Text-to-Speech Reader

https://apps.microsoft.com/detail/9nlhln1sjnbr?hl=en-US&gl=US
1•cdljn2022•14m ago•0 comments

Semantic Scale Netowork – uncover semantic overlap between different constructs

https://rosenbusch.shinyapps.io/semantic_net/
1•charlie42•15m ago•0 comments

How to Get a Friend to Leave an Abusive Relationship

https://www.jenn.site/how-to-get-a-friend-out-of-an-abusive-relationship/
1•surprisetalk•15m ago•0 comments

Google Authenticator Crash Instantly on iOS 27, Locking Users Out of 2FA Codes

https://support.google.com/accounts/thread/479697776/google-authenticator-ios-5-2-2-instant-crash...
1•DeepLogin•16m ago•0 comments

Making use of StarCitizen ship telemetry API

https://beko.famkos.net/2026/12/01/making-use-of-starcitizen-ship-telemetry-api/
1•speckx•16m ago•0 comments

US Congress passes permitting reform bill

https://www.nytimes.com/2026/12/01/climate/house-pass-baaja-permitting-energy.html
2•Metacelsus•19m ago•0 comments

Advent of μarchitecture Day 1 [video]

https://www.youtube.com/watch?v=CItAQQs33Ys
1•ankitg12•21m ago•0 comments

Lenny's Podcast: Coding is solved – now what do we do?

https://simonwillison.net/2026/Nov/29/lennys-podcast/
1•HowardLien•21m ago•0 comments

Looped DeepSeek-v4.1: Making a 552B Frontier Model Smarter and Faster

https://blog.tiltastech.com/projects/looped-deepseek-v41-recurrent-depth/
2•comma_at•22m ago•0 comments

Remotely unplugging a USB device on my Mac, without touching it

https://www.jeffgeerling.com/blog/2026/remote-control-usb-hub/
1•JulieZhao00•23m ago•0 comments

The Bitter Lesson Ate Your AI Factory

https://zmievsa.org/posts/the-bitter-lesson-ate-your-ai-factory/
3•adtovkat•23m 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).