frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Quincunx: A discovery engine for the sparse domains

https://arsinq.com/articles/quincunx/
1•knipnehpets•6m ago•0 comments

Record heat is drying up Europe's major rivers, as these striking images show

https://www.washingtonpost.com/climate-environment/interactive/2026/08/12/see-receding-water-leve...
1•lisper•7m ago•0 comments

Mistral got a US patent on tool calls in 118 days. Without prior public notice

https://agent-wars.com/news/2026-08-11-mistral-code-tool-calls-patent-b1
3•berofeev•8m ago•0 comments

SQLite: The WAL-Reset Bug

https://www.sqlite.org/wal.html#walresetbug
2•forks•13m ago•0 comments

AI Agents Enable Adaptive Computer Worms

https://arxiv.org/abs/2606.03811
3•reasonableklout•17m ago•0 comments

German nonprofit files criminal complaint over Meta smart glasses privacy

https://www.engadget.com/2235857/german-nonprofit-files-criminal-complaint-over-meta-smart-glasse...
2•doener•17m ago•0 comments

When Not to Obey Orders (2019)

https://warontherocks.com/when-not-to-obey-orders/
3•downbad_•18m ago•0 comments

Richard Feynman's blackboard at time of his death (1988)

https://digital.archives.caltech.edu/collections/Images/1.10-29/
2•downbad_•18m ago•0 comments

An Indian cash scheme for women drops nine million beneficiaries – 29k were men

https://www.bbc.com/news/articles/c0ejxe0q3q4o
1•vinni2•20m ago•0 comments

The Human Fridge

https://www.theguardian.com/lifeandstyle/2026/jul/22/human-fridge-japan-heatwave
1•vinni2•21m ago•0 comments

SquashImage

https://squashimage.com/
1•archemistz•22m ago•0 comments

Cure All Diseases

https://www.worksinprogress.news/p/future-of-medicine
1•dionysou•32m ago•0 comments

Upscal – A native C++/Vulkan image upscaler for Windows

https://upscal.app
1•vertex_steven•37m ago•0 comments

Flet: Build cross-platform apps in Python, on top of Flutter

https://flet.dev/
1•theanonymousone•37m ago•0 comments

I built an AI video upscaler that runs the heavy GPU work in the cloud

https://videoupscaler.com
1•vertex_steven•40m ago•1 comments

Twitch Now Trains Amazon's Generative AI Models on Your Channel by Default

https://www.ign.com/articles/twitch-now-trains-amazons-generative-ai-models-on-your-channel-by-de...
3•HelloUsername•43m ago•0 comments

Hitchhiker's Guide to the Internet (1992)

https://www.gutenberg.org/cache/epub/39/pg39-images.html
2•ecliptik•47m ago•0 comments

Celld v0.2.0

https://github.com/denoland/celld/releases/tag/v0.2.0
1•tosh•49m ago•0 comments

Hardware researcher creates project to find the slowest single x86 instruction

https://www.tomshardware.com/pc-components/cpus/hardware-researcher-spins-up-cpu-deoptimization-p...
3•thunderbong•50m ago•0 comments

Launch HN: Bullet (YC S26) – A Faster Coding Agent

https://www.codewithbullet.com
4•adi1•55m ago•0 comments

Google's newest Pixel Watch monitors blood pressure and insulin resistance

https://www.engadget.com/2235228/google-health-guardian-pixel-watch-5-blood-pressure-insulin-resi...
3•brandonb•56m ago•1 comments

What Was the Internet?

https://www.bostonreview.net/articles/what-was-the-internet/
5•doener•58m ago•0 comments

OMS/RDC: 7 Opportunités D'emploi À NE PAS Manquer

https://medium.com/@eliudprom/oms-rdc-7-opportunit%C3%A9s-demploi-%C3%A0-ne-pas-manquer-0c454d0e367a
1•kivuhub•1h ago•0 comments

Official Fritzing part for the GGreg20_V3 Geiger counter module

https://iot-devices.com.ua/en/ggreg20_v3-fritzing-part/
1•iotdevicesdev•1h ago•0 comments

Gemini API removes postpay billing

5•alex14fr•1h ago•0 comments

A Pi setup with permission, sandbox, and auto-review

https://ptgamr.substack.com/p/a-pi-setup-with-permission-sandbox
1•ptgamr•1h ago•0 comments

Guide to (not) fucking up QR codes

https://infosec.exchange/@rebane2001/117078420917152774
1•signa11•1h ago•1 comments

JEDEC Previews LPDDR6 Roadmap, 512 GB Densities and SOCAMM2 Standard

https://www.techpowerup.com/348441/jedec-previews-lpddr6-roadmap-512-gb-densities-and-socamm2-sta...
2•silentbob7•1h ago•1 comments

Ask HN: So US sanctions are more or less footguns right?

1•shafkathullah•1h ago•0 comments

The shock revelation that light bulbs are wrecking your metabolism

https://www.newscientist.com/article/2582914-the-shock-revelation-that-light-bulbs-are-wrecking-y...
1•XzetaU8•1h 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).