frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Ask HN: B2B or B2C?

1•eyalhadad•1m ago•0 comments

The Slow Death of Productivity: Why Time.sleep() Is Killing Your Automation

https://pypi.org/project/nano-wait/
1•LuizSeabra•2m ago•1 comments

Show HN: Collecting AI Developer Tools

https://aihunt.dev/
1•fullofdev•3m ago•0 comments

Proposal: Generic Methods for Go

https://github.com/golang/go/issues/77273
1•pansa2•3m ago•0 comments

'Organized syndicates' fraudulently access health records, lawsuit says

https://www.washingtonpost.com/health/2026/01/22/electronic-health-record-fraud-lawsuit/
1•bookofjoe•4m ago•1 comments

JWT authentication bypass in HarbourJwt via "unknown alg"

https://pentesterlab.com/blog/cve-2026-23993-harbourjwt-unknown-alg-jwt-bypass
1•mooreds•7m ago•0 comments

Justice Department Opens Criminal Probe into Silicon Valley Spy Allegations

https://www.wsj.com/us-news/law/justice-department-opens-criminal-probe-into-silicon-valley-spy-a...
1•nradov•7m ago•0 comments

Results from the 2025 Go Developer Survey

https://go.dev/blog/survey2025
2•mooreds•8m ago•0 comments

Show HN: Skill Generator – Turn terminal workflows into AI agent skills

1•ezulabs•9m ago•0 comments

A multi-entry CFG design conundrum

https://bernsteinbear.com/blog/multiple-entry/
1•ibobev•9m ago•0 comments

Infinite Random Rectangles – The Poisson Rect Process

https://www.boristhebrave.com/2026/01/22/infinite-random-rectangles-the-poisson-rect-process/
1•ibobev•9m ago•0 comments

Mana LLM OS

https://www.mana.space/
1•behzadhaghgoo•12m ago•0 comments

EV battery leader CATL set to launch first sodium-ion batteries in vehicles

https://electrek.co/2026/01/23/ev-battery-leader-plans-first-sodium-ion-batteries-passenger-cars/
2•breve•12m ago•0 comments

The Time Oxygen Almost Killed Everything [video]

https://www.youtube.com/watch?v=qERdL8uHSgI
2•mooreds•12m ago•0 comments

Zulip AI use policy and guidelines

https://zulip.readthedocs.io/en/latest/contributing/contributing.html#ai-use-policy-and-guidelines
1•Philpax•14m ago•0 comments

Ask HN: Why don't winter gloves have mechanical fingers?

2•amichail•15m ago•2 comments

Show HN: The one-stop-place for gen-alpha events

https://www.bloxrn.com
1•claude_sh_1959•15m ago•0 comments

The New "Full Stack"

https://twitter.com/ray_daze/status/2014813876878262301
2•alexjray•16m ago•0 comments

EquipmentShare (YC W15) goes public

https://www.ycombinator.com/blog/congratulations-to-equipmentshare/
5•subsequent•16m ago•2 comments

Show HN: Free Top Font Library: Bestfonts.co – Find Free Top Fonts in Seconds

https://bestfonts.co
1•LetsBuildThis•17m ago•0 comments

Tim O'Reilly – AI and the Next Economy

https://www.oreilly.com/radar/ai-and-the-next-economy/
1•rmason•17m ago•1 comments

Tiny Sand Grains May Solve 5k-Year-Old Stonehenge Mystery

https://studyfinds.org/sand-may-solve-stonehenge-mystery/
1•rmason•18m ago•0 comments

Show HN: CIE – Open-source code intelligence engine for AI coding assistants

https://github.com/kraklabs/cie
1•kraklabs•18m ago•0 comments

Urjo

https://urjo.com/
3•wawayanda•19m ago•0 comments

Breath carries clues to gut microbiome health

https://medicine.washu.edu/news/breath-carries-clues-to-gut-microbiome-health/
1•gmays•20m ago•0 comments

Wine 11.1 – Run Windows Applications on Linux, BSD, Solaris and macOS

https://gitlab.winehq.org/wine/wine/-/releases/wine-11.1
2•neustradamus•21m ago•0 comments

Winapp, the Windows App Development CLI – Windows Developer Blog

https://blogs.windows.com/windowsdeveloper/2026/01/22/announcing-winapp-the-windows-app-developme...
1•MaysonL•22m ago•0 comments

North America divided into regions of 1M people

https://www.anita.garden/assets/na1m.png
3•owodc•25m ago•0 comments

Akin to believing light beer is a solution to alcoholism: My time at Patagonia

https://arestlesstransplant.substack.com/p/akin-to-believing-light-beer-is-a
1•chaseadam17•26m ago•0 comments

AI is poisoning itself and pushing LLMs toward collapse,but there's a cure

https://www.zdnet.com/article/ai-is-poisoning-itself-model-collapse-cure/
1•CrankyBear•31m ago•0 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•8mo 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•8mo 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•8mo 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).