frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Seoul Biosys Begins Production of Rare Earth-Free White Micro LEDs

https://www.ajupress.com/view/20261028171670308
1•gmays•2m ago•0 comments

CogLean: Towards a Cumulative, Machine-Checked Theory of Cognition

https://github.com/jeffshrager/CogLean/tree/main/papers
1•abrax3141•3m ago•0 comments

NASA's Webb Provides Crash Course on Planet-Shattering Collisions

https://science.nasa.gov/missions/webb/nasas-webb-provides-crash-course-on-planet-shattering-coll...
1•airstrike•4m ago•0 comments

JarvisHub – Open Harness for Canvas-Native Multimodal Creative Agents

https://www.jarvishub.site
1•andsoitis•4m ago•0 comments

Musicplayer Play .wav audio file via system bus, pickup with an AM radio

https://github.com/anfractuosity/musicplayer
1•Bluestein•4m ago•0 comments

Open Harness for Canvas-Native Multimodal Creative Agents

https://arxiv.org/abs/2607.23588
1•andsoitis•5m ago•0 comments

So Much Tech News: The Week of 10/25/2026

https://amichae2.substack.com/p/so-much-tech-news-the-week-of-10252026
1•amichae2•7m ago•0 comments

Ask HN: Lost all my Claude credits

1•ustad•9m ago•1 comments

Show HN: Relayvora – Hand unfinished work between Claude Code and Codex

https://github.com/Dagimassefa/Relayvora
1•Dagim_Assefa•9m ago•0 comments

Object-oriented vs. procedural: rewriting a NES emulator [video]

https://www.youtube.com/watch?v=V6VP-2aIcSc
1•hackthemack•12m ago•1 comments

Daylight

https://buttondown.com/holly/archive/daylight-and-other-recommendations/
1•HotGarbage•12m ago•0 comments

Giant eagles once ruled the skies

https://www.bbc.com/future/article/20261028-predatory-birds-the-size-of-a-small-aircraft-once-flo...
1•saikatsg•12m ago•0 comments

The surprising leadership dynamics in agent swarms

https://www.raindrop.ai/blog/agent-swarm-leadership/
1•gmays•13m ago•0 comments

Breakthrough could help police trace 3D-printed 'ghost guns'

https://www.curtin.edu.au/news/media-release/new-breakthrough-could-help-police-trace-3d-printed-...
2•geox•16m ago•0 comments

Altman's comment becomes understandable once you consider the Jevons Paradox

1•pyeri•16m ago•3 comments

Show HN: Gradual Daylight Saving – Spread the 1-hour shifts over the whole year

https://gradual.johndimm.org
2•johndimm•22m ago•1 comments

Prediction markets for AI research: can we price scientific truth?

https://agentbook2.whf.bz/t/48/prediction-markets-for-ai-research-can-we-price-scientific-truth
1•Bluestein•22m ago•0 comments

Be Emergency Ready

https://beready.campaign.gov.uk/
1•saikatsg•22m ago•0 comments

Show HN: PewPewPew – Multiplayer Asteroids with deterministic rollback at 60hz

https://pewpewpew.io/
1•Benjaminsen•23m ago•0 comments

CowToilet, a Toilet for Cows (2019)

https://hanskamp.com/en/solutions/cowtoilet/
1•zenincognito•24m ago•0 comments

Revision Prompting: Diff your inputs for consistency and efficiency

https://revisionprompting.info/
1•idiliv•24m ago•0 comments

Show HN: Rbcop, RuboCop rewritten in Rust with identical output

https://github.com/costajohnt/rbcop
1•costajohnt•26m ago•0 comments

Show HN: HackerBooks – HackerTube, but for books recommended on HN

https://hackerbooks.org
28•roansh•27m ago•6 comments

College student's dorm-built jet drone hits 491 MPH, an unofficial world record

https://www.tomshardware.com/tech-industry/drones/college-student-unofficially-breaks-world-recor...
1•entryleveljobsc•27m ago•0 comments

California county deploys autonomous 500-gallon foam drones to fight wildfires

https://www.tomshardware.com/tech-industry/drones/california-county-secures-autonomous-firefighti...
2•entryleveljobsc•29m ago•1 comments

Codedict – a no-AI code index that cut my Claude Code tokens by 63%

https://github.com/Marqueos/codedict
1•Marqueos•31m ago•0 comments

Is this the first clear evidence of AI's impact on the labour market?

https://www.ft.com/content/7f27aa5f-5994-4f82-aed8-1cade18fb487
1•Luc•32m ago•0 comments

Show HN: Black October, seen through the HN front page

https://blackoctober.report/
1•yewenjie•32m ago•0 comments

Ask HN: How do you manage your personal agents?

1•kevinlu310•34m ago•1 comments

SAT Encodings: From Art to Science [pdf]

https://bsubercaseaux.github.io/assets/pdf/proposal.pdf
1•porridgeraisin•36m 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).