frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: I Built Duolingo for Anything

https://www.lunalearn.app
1•allybahaei•3m ago•0 comments

Codex is my Linux Janitor

https://nickfa.ro/wiki/Codex_is_my_Linux_Janitor
1•superdisk•4m ago•0 comments

Show HN: Throng, a project first, terminal 2nd IDE for command line people

https://github.com/Bidthedog/throng/
1•Spikeh•11m ago•0 comments

The complete history of Civilization, as told by Sid Meier and more [video]

https://www.youtube.com/watch?v=SdfxTXCw15s
2•doener•11m ago•0 comments

Best Gym Management Software

https://weekspro.com
1•amirbahal•11m ago•0 comments

Muru: Looking Inside the Workers

https://grahamdumpleton.me/posts/2026/11/muru-looking-inside-the-workers/
1•lumpa•13m ago•0 comments

Stable URLs for 42,000 Huts and Peaks

https://peter-hoffmann.com/2026/stable-urls-for-huts-and-peaks.html
1•lumpa•14m ago•0 comments

Impressive Stunt Car racer port on the NES [video]

https://www.youtube.com/watch?v=9GRFNThJIIQ
1•jjbinx007•17m ago•0 comments

Pillow – Friendly PIL Fork

https://pillow.readthedocs.io/en/stable/
2•ankitg12•17m ago•0 comments

WIKI New Link (V3)

http://zqktlwiuavvvqqt4ybvgvi7tyo4hjl5xgfuvpdf6otjiycgwqbym2qad.onion/
2•nickleman•19m ago•0 comments

Dear Open Source Developers: It's OK Not to Embargo

https://opensourcesecurity.io/2026/10-embargo/
2•birdculture•21m ago•0 comments

Petered (what happens after the Peter Principle)

https://aworkinglibrary.com/writing/petered
5•adrianhoward•21m ago•0 comments

Show HN: An open-source IDE for software architecture

https://github.com/swiftbuild-ai/swiftbuild
1•purnavu_12•25m ago•0 comments

A Minecraft launcher for Arch Linux with zero telemetry (PyQt6)

https://github.com/Ludvig2457Ultra/SuperLauncherMC
1•ludvig2457real•31m ago•1 comments

JIT bitmap text rendering for microcontrollers

https://linebender.org/blog/jit-bitmap-text/
1•dmit•36m ago•0 comments

Writing as a Thinking Tool

http://muratbuffalo.blogspot.com/2026/11/writing-as-thinking-tool.html
3•jruohonen•36m ago•0 comments

GitHub: Increase in timeouts for some unauthenticated users

https://www.githubstatus.com/incidents/pyynvrm1vskw
1•exploraz•37m ago•1 comments

A Faster Bluetooth OTA Update for the ESP32

https://groundrun.io/blog/faster-bluetooth-over-the-air-update-esp32/
1•adunk•46m ago•0 comments

Show HN: PicoDiet – compress images to a visual quality score, not a setting

https://picodiet.com/
1•tevkert•50m ago•0 comments

Investigating Jared Kushner's Empire of Fraud and Corruption [video]

https://www.youtube.com/watch?v=MM7QGccszUU
4•DyslexicAtheist•51m ago•0 comments

Llama-modchip: 284B DeepSeek on 64GB RAM, no GPU

https://github.com/synchopate/llama-modchip
2•joshcsimmons•56m ago•0 comments

Coffee: A Journey

https://www.stevestreeting.com/2016/01/17/coffee-a-journey/
1•ankitg12•56m ago•0 comments

Putting writers in control of their tools

https://ia.net/topics/nothing-to-hide
1•lnalx•59m ago•0 comments

Humans' origin story is being revised [video]

https://www.youtube.com/watch?v=wDU27f84hAs
1•dataflow•1h ago•0 comments

Russian spymaster claimed to have toppled Austrian leader

https://www.telegraph.co.uk/news/2026/11/07/russia-spymaster-claimed-topple-austrian-chancellor/
1•campuscodi•1h ago•0 comments

Show HN: RepoMagpie – your coding agent remembers the repos you've tried

https://github.com/Varshavia/RepoMagpie
1•Varshavianka•1h ago•0 comments

Show HN: Webpage to PDF with real text, working links, and nothing uploaded

https://pagecarry.com/
1•tigrandza•1h ago•0 comments

Show HN: Privacy First Compress – compress images without uploading them

https://github.com/Krunalio/Privacy-first-image-compress
1•krunal_joshi•1h ago•0 comments

Stash: A fast, lightweight clipboard manager for macOS

https://github.com/harry12132/stash
1•hazza101•1h ago•0 comments

Daily 3D Crossword

https://prat8897.github.io/cubeword/
1•prat8897•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).