frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Holden's Lightning Flight

https://en.wikipedia.org/wiki/Holden%27s_Lightning_flight
1•ColinWright•1m ago•0 comments

After a rough stretch, mRNA gets a boost from cancer vaccines

https://www.statnews.com/2026/08/31/mrna-cancer-vaccine-intersects-politics-medicine/
1•brandonb•1m ago•0 comments

Ten Steps on the Road to Efficient

https://seths.blog/2026/08/ten-steps-on-the-road-to-efficient/
1•momentmaker•3m ago•0 comments

Giza Pyramid Complex

https://en.wikipedia.org/wiki/Giza_pyramid_complex
1•tosh•3m ago•0 comments

DeepSeek-V4-Flash-Vision-Exp

https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-Vision-Exp
1•amulyabaral•5m ago•0 comments

The Universe as a Minified Bundle

https://andrewarrow.dev/2026/moons/2/day/9/the-universe-as-a-minified-bundle/
1•cs1996•6m ago•0 comments

14% of US employers to drop weight-loss drugs in 2027, as costs increase

https://www.reuters.com/legal/litigation/more-us-employers-drop-weight-loss-drugs-2027-healthcare...
1•brandonb•7m ago•0 comments

Real Estate Scraper– Token-efficient structured property crawler

https://github.com/Kodomoppoi/Real-estate-Scrapper
1•Koddop•9m ago•1 comments

The feds seized a stake in Anthropic from Sam Bankman-Fried's friends

https://www.businessinsider.com/sam-bankman-fried-anthropic-ftx-caroline-ellison-nishad-singh-doj...
1•theanonymousone•11m ago•0 comments

Agent Memory as a File Format

https://calpaterson.com/memoryfields.html
1•ingve•13m ago•0 comments

celld v0.4.0

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

A CVE Dispute

https://daniel.haxx.se/blog/2026/06/24/a-cve-dispute/
5•theanonymousone•17m ago•0 comments

Your syntax highlighter is wrong (2014)

https://jameshfisher.com/2014/05/11/your-syntax-highlighter-is-wrong/
1•kqr•18m ago•0 comments

Editable 2.0 preview – CMS-free editable websites with Svelte and SQLite

https://editable.website/
1•_mql•21m ago•0 comments

Andrew Ng: the biggest opportunities in AI

https://www.youtube.com/watch?v=o-wv_szZ0V0
1•lifeisstillgood•21m ago•0 comments

SubmitMap – 360 launch directories, who each one accepts, and why

https://submitmap.com/
1•submitmap•23m ago•0 comments

CC builds macOS native driver for HP Laser 1008a

https://github.com/Kuberwastaken/hp-laser-1008a-macos
2•kekqqq•25m ago•0 comments

Sabine Hossenfelder: More Exposed Than Ever (Racism Edition) [video]

https://www.youtube.com/watch?v=BdB79BUcLV0
4•lynx97•26m ago•1 comments

You Know Who Hates AI? Insurance Claims Adjusters

https://www.wired.com/story/insurance-claims-adjusters-really-hate-ai/
1•joozio•29m ago•0 comments

An AI agent is a background job, not a web request

https://nitishagar.medium.com/an-agent-is-a-job-not-an-api-7673b837bd11
1•nitishagar•29m ago•0 comments

The quality you should most wish for your children

http://economist.com/business/2026/08/27/the-quality-you-should-most-wish-for-your-children
3•pingou•32m ago•1 comments

I built a hardware-bound local password vault hidden in a photo

https://blindlock.app/en/
2•BlindLock•32m ago•0 comments

The AI-Native SDLC Starts with Your Infrastructure

https://metalbear.com/blog/ai-native-sdlc-infrastructure/
3•aviramha•33m ago•0 comments

What happens when a GPU writes memory

https://blog.doubleword.ai/what-happens-when-a-gpu-writes-memory
3•somnial•36m ago•0 comments

The People's Computer at 50 the Cosmac ELF [video]

https://www.youtube.com/watch?v=H3Pdf8iRw5E
2•oldnetguy•36m ago•0 comments

Show HN: AI studio with 500 models for headshots, video and images

https://magicshot.ai
2•not_wowinter14•38m ago•0 comments

Local AI Is Dead. You Are at the Funeral

https://twitter.com/ivanburazin/status/2094373912154874171
4•tosh•40m ago•1 comments

There is no such thing as full decentralization

https://en.andros.dev/blog/603e4e90/there-is-no-such-thing-as-full-decentralization/
3•andros•43m ago•0 comments

Day: Create native apps for every platform from a single Rust codebase

https://daybrite.dev/
2•LiamPowell•52m ago•0 comments

Show HN: SwiftMo Power captures real-time exercise kinematics from a webcam

https://app.swiftmo.com/#/stage/:manualMode/:demo
2•Tomas_Metcalfe•53m ago•3 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).