frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Cohere and Aleph Alpha merge to create $20B AI giant

https://techstartups.com/2026/09/16/cohere-and-aleph-alpha-merge-to-create-20-billion-ai-giant-ba...
2•soltanov•1m ago•0 comments

HDR as a new tool for graphic design

https://hdrlogo.com/after-white
1•alex_trfmv•2m ago•0 comments

How SpaceX Streamlined the Raptor Engine

https://www.construction-physics.com/p/how-spacex-streamlined-the-raptor
1•crescit_eundo•2m ago•0 comments

Microsoft AI chief calls out Anthropic's approach to AI consciousness

https://www.yahoo.com/news/articles/microsoft-ai-chief-calls-anthropics-140542640.html
1•soltanov•2m ago•0 comments

AI Helps Rich People More

https://justismills.substack.com/p/ai-helps-rich-people-more
1•surprisetalk•3m ago•0 comments

Show HN: File that is both valid bash and PowerShell, and replaces curl – bash

https://github.com/remcovanmook/hexec
1•remcovm•4m ago•0 comments

Envoy: EU should not increase climate resilience at expense of Japan industry

https://www.ft.com/content/35b6c207-98b1-44fb-82b9-3c8c29507e0a/
1•oliculipolicula•7m ago•0 comments

Every story fades with time, except for one

https://twitter.com/immutbl/status/2100242806400827495
1•delichon•7m ago•0 comments

Cohere, Aleph Alpha combine to target enterprise AI market

https://www.reuters.com/legal/transactional/cohere-aleph-alpha-combine-target-enterprise-ai-marke...
1•fgebhart•9m ago•0 comments

Charterra – a weekly world tour of local charts

https://charterra-music.com/
1•Illniyar•12m ago•1 comments

Piddington migrant camp could be scrapped because of NEWTS

https://www.gbnews.com/news/piddington-migrant-camp-scrapped-newts
1•FridayoLeary•13m ago•0 comments

Every 21 minutes: my self-healing monitor took my business line down for 2 days

https://gist.github.com/buildwithabid/161d26e90196c4df2953dc7f954bcd54
1•BuildWithAbid•14m ago•1 comments

Facing Outrage, Flock Got Help from Group That Uses AI to Rally Support

https://theintercept.com/2026/09/17/flock-cameras-ai-astroturf-support/
2•cdrnsf•14m ago•0 comments

We're releasing Kalypta, the first app to block AI notetakers in your meetings

https://twitter.com/aidaxbaradari/status/2100223250789970186/video/1
2•taubek•19m ago•1 comments

1996 PC dial-up and early web simulator

https://56k.rip/
1•henrychannel•20m ago•1 comments

Rust coreutils acknowledges copying of GNU GPL code

https://github.com/uutils/coreutils/releases/tag/0.12.0
4•co4312•21m ago•2 comments

Free to Choose (1980) [video]

https://www.youtube.com/watch?v=dngqR9gcDDw
1•nomilk•21m ago•0 comments

AI tool turns any paper into an 'agent' that can collaborate and answer queries

https://www.nature.com/articles/d41586-026-02899-2
2•sohkamyung•22m ago•0 comments

Almost-There

https://almost-there.eu/en
1•annsaoirses•28m ago•1 comments

A small, extensible experimental embedded database in C++20

https://github.com/morishuz/CoreSQL
1•oryx1729•29m ago•0 comments

I'm building a read-only AWS cost optimization tool for startups

https://commitalpha.com
2•problemstosolve•31m ago•0 comments

How to get into a flow state: the triggers that hold up, and what EEG says

https://medium.com/@6thMind/how-to-get-into-a-flow-state-the-triggers-that-hold-up-and-what-eeg-s...
1•smanuel•31m ago•0 comments

Open source semi: Windrose puts its electric truck online, for free

https://electrek.co/2026/09/17/open-source-semi-windrose-puts-its-electric-truck-online-for-free/
1•Klaster_1•32m ago•0 comments

Pew: Democrats more worried than Republicans about AI's impact on jobs

https://pewresearch.org/short-reads/2026/09/16/democrats-are-now-more-worried-than-republicans-ab...
3•utiiiD•33m ago•0 comments

Litespeed – a local coding agent with multi-model workflows

https://github.com/BerriAI/litespeed/tree/main
1•hmokiguess•34m ago•0 comments

River home to 500 crocodiles chosen as Olympic rowing venue

https://www.bbc.com/sport/olympics/articles/cqvgy1m9z4k8o
4•vismit2000•35m ago•1 comments

Nuclear Fusion's Moment of Truth

https://email.newsletters.ft.com/c/eJyMkslS40gQhp-mdCtH7ctBB29iRMxgzDIMcyGqKrOMsCy5JRkHPH1HE_Ry5J...
2•helsinkiandrew•35m ago•1 comments

Kidney Transplantation in Highly Sensitized Persons After Car T-Cell Therapy

https://doi.org/10.1056/nejmc2608825
1•sbulaev•36m ago•0 comments

Show HN: On-device meeting transcription for iPhone (no cloud, no account)

https://apps.apple.com/us/app/fieldnoter-transcription/id6789909820
2•ljokr•36m ago•0 comments

HavenCo

https://en.wikipedia.org/wiki/HavenCo
1•vismit2000•37m 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).