frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Binance Hack: Tracing the $6.4B Theft to North Korea

https://www.chainalysis.com/blog/binance-exploit-latest-findings-and-response/
1•Anon84•4m ago•0 comments

GTA 6: How Jason and Lucia's relationship system works (German)

https://www.shotbox.de/gta-6-so-funktioniert-beziehungssystem/
1•flowmanager•6m ago•0 comments

Show HN: CheckOwners to find your repo's hidden single points of failure

https://github.com/smusali/checkOwners
1•smusali•12m ago•0 comments

Database Indexing Isn't Magic. Understand It from Scratch

https://sushantdhiman.dev/blog/database-index-from-scratch/
2•birdculture•13m ago•0 comments

Avartha: Fastest open-weight frontier voice AI beats OpenAI, Google, and xAI

https://avartha.ai/blog/introducing-avartha/
2•rajveerb•13m ago•1 comments

SantaWho – A Family Game Where Everyone Interviews for The North Pole

https://santawho.com/
1•dzink•14m ago•0 comments

Ask HN: Pivoting from Platform Engineering

1•desperateplatfo•16m ago•0 comments

Native Hawaiians and Easter Islanders came from same 'ultravoyager' group

https://www.livescience.com/archaeology/native-hawaiians-and-easter-islanders-came-from-same-ultr...
1•geox•18m ago•0 comments

/Make_PPTX – a 3 set Skills to create perfect PPTX

https://github.com/MaximeRumpler/Make_PPTX
1•MaximeRumpler•21m ago•1 comments

A History of Nvidia Stream Multiprocessor (2020)

https://fabiensanglard.net/cuda/index.html
1•andsoitis•23m ago•0 comments

OpenEaNasir: Public-domain machine translations of the famous copper complaint

https://github.com/firasd/scrapbook/tree/main/2026_V/openeanasir
1•firasd•23m ago•1 comments

Hackers could poison AI models by tampering with core infrastructure

https://www.cybersecuritydive.com/news/ai-hardware-model-tampering-eclypsium/873177/
2•gmays•24m ago•0 comments

Watch any video in your language

https://sugar.video/
1•jaekwon•25m ago•1 comments

Homebrew Cray-1A

https://www.chrisfenton.com/homebrew-cray-1a/
2•andsoitis•25m ago•0 comments

Show HN: Measure the carbon cost of everyday items: prompts, beef, flights

https://carboncost.me
1•lasu•25m ago•0 comments

What are grid-supporting functions in vector-controlled grid-tied inverters?

https://chrisdevblog.com/2026/07/31/what-are-grid-supporting-functions-in-vector-controlled-grid-...
1•renehsz•28m ago•0 comments

Argentina most exposed to AI impact in Latin America

https://buenosairesherald.com/business/argentina-most-exposed-to-ai-impact-in-latin-america-study...
1•wslh•28m ago•0 comments

Back in Time Live 2026

https://www.linusakesson.net/music/bitlive2026/index.php
1•alex_hirner•30m ago•0 comments

AI delivers 'zero financial payoff' to most companies, Apollo economist says

https://techcrunch.com/2026/10/25/ai-delivers-zero-financial-payoff-to-most-companies-according-t...
3•throwoutway•31m ago•1 comments

Logbook for scuba divers: multi-gas dives, dive-computer imports, trips, gear

https://github.com/opendiving/opendiving
1•michidk•31m ago•0 comments

Find Calvin and Hobbes

https://findcalvinandhobbes.com
2•gnabgib•38m ago•0 comments

Voynich Manuscript

https://en.wikipedia.org/wiki/Voynich_manuscript
2•tlh•40m ago•0 comments

Fabulously Fancy Fragments (Live Org / LaTeX Previews)

https://blog.tecosaur.net/tmio/2026-11-01-previewing.html
1•spudlyo•41m ago•0 comments

Developing Retro-GUI for Win3.11 (Delphi 1) and OS/2 (Visual C++) (2025)

https://chrisdevblog.com/2025/04/14/developing-retro-gui-for-win3-11-delphi-1-and-os-2-visual-c/
3•renehsz•41m ago•1 comments

Introducing Natural Direct

https://www.natural.com/blog/direct
1•gmays•42m ago•0 comments

Nine Killed After a Learjet Crashes in Palm Beach County, Florida

https://www.cnn.com/2026/11/01/us/south-florida-plane-crash
3•2OEH8eoCRo0•43m ago•0 comments

Proton's AI manifesto for software engineering

https://proton.me/blog/ai-manifesto
4•jonbaer•43m ago•1 comments

My CV is a CI pipeline

https://blog.benjamin.ie/blog/my-cv-is-a-ci-pipeline
1•benkelly•45m ago•2 comments

Manna: Two Views of Humanity's Future by Marshall Brain

https://james.darpinian.com/manna
1•modeless•46m ago•0 comments

Nothing Installs at Our Company Until It's a Week Old

https://brunoj.com/nothing-installs-at-our-company-until-its-a-week-old/
2•brunojur•46m ago•1 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).