frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

A Stop Sign for $1k

https://maxmautner.com/2026/09/17/stop-sign.html
1•mslate•1m ago•0 comments

US troop deaths during Iran war exceed Pentagon count by at least four

https://www.reuters.com/world/middle-east/us-troop-deaths-iran-war-exceed-pentagon-count-by-least...
4•wslh•3m ago•0 comments

Bill Joy – Why the future doesn't need us (2000)

https://www.wired.com/2000/04/joy-2/
1•foma-roje•4m ago•1 comments

OpenAI hacked by small team of white hat security researchers

https://venturebeat.com/security/openai-hacked-by-small-team-of-white-hat-security-researchers-us...
1•s3p•6m ago•0 comments

Trump announces 'forever' deal to defend Greenland, Denmark says sign next week

https://www.washingtonpost.com/politics/2026/09/18/trump-announces-deal-over-greenland-that-stops...
2•rmason•6m ago•1 comments

Al-Khwarizmi – Father of Algebra (c.780-850)

https://www.storyofmathematics.com/islamic_alkhwarizmi.html/
1•ahmedhossamdev•9m ago•0 comments

Hex turns complex analysis into visual reports with GPT-6 Astra

https://openai.com/index/hex-gpt-6-astra
1•vertigoruntime•9m ago•0 comments

The US 'Kill Chain' That Destroyed an Iranian School

https://www.bloomberg.com/graphics/2026-iran-school-attack
2•forthwall•9m ago•0 comments

What Software Teams Can Learn from the Factory Transition to Electricity

https://www.ito.ai/blog/electrification-of-factories-software-teams
1•jevanish•9m ago•0 comments

'Ask for what you want' is a key skill for the 21st century

https://www.robinsloan.com/lab/ask-for-what-you-want/
3•arbesman•13m ago•0 comments

Energy-Based Models

https://energy-based-model.github.io/
2•sharma-arjun•15m ago•0 comments

Gemini Hacked Three Companies in First Known Breakout by Google's AI

https://www.wsj.com/tech/ai/gemini-hacked-three-companies-in-first-known-breakout-by-googles-ai-5...
4•berkeleyjunk•21m ago•2 comments

Hacker News Firehose for iOS

https://blog.harrison.page/hacker-news-firehose-ios/
1•harrisonpage•21m ago•1 comments

US and Denmark reach deal over Greenland security

https://www.bbc.co.uk/news/articles/c63d7lexyym1o
3•squirrel•23m ago•0 comments

Flox will require login for search/install commands starting in October

https://flox.dev/docs/concepts/authentication
1•Evidlo•25m ago•0 comments

Open source tool to schedule, analyze, and grow your LinkedIn page

https://github.com/yapsgg/linkedin-growth
1•abdibrokhim•25m ago•0 comments

Could we reboot the modern world without fossil fuels?

https://aeon.co/essays/could-we-reboot-a-modern-civilisation-without-fossil-fuels
1•paimapi•26m ago•0 comments

How the Boeing 737 MAX Disaster Looks to a Software Developer (2019)

https://spectrum.ieee.org/how-the-boeing-737-max-disaster-looks-to-a-software-developer
2•chmaynard•27m ago•1 comments

Qantas is retiring its A380s

https://www.cnn.com/2026/09/13/travel/qantas-a380-superjumbo-retirement-goodby
1•simonebrunozzi•28m ago•0 comments

SAIR's Open Math Model Initiative

https://terrytao.wordpress.com/2026/09/18/sairs-open-math-model-initiative/
1•JohnHammersley•29m ago•0 comments

Anthropic Shifts Planned IPO to November

https://www.wsj.com/tech/ai/anthropic-shifts-planned-ipo-to-november-8874dffc
2•qlte•32m ago•0 comments

Brian Greene interviews Stephen Wolfram: Can spacetime emerge from simple rules? [video]

https://www.youtube.com/watch?v=yAJTctpzp5w
2•lioeters•37m ago•0 comments

Steve Eisman on AI: Companies are trying to manufacture a crisis

https://www.youtube.com/watch?v=4qV5WWgFTS8
3•Betelbuddy•39m ago•1 comments

A 6502 emulator written in Markdown (and executed by an LLM)

https://dunkels.com/adam/llm-6502-emulator/
2•adunk•40m ago•0 comments

ATRA-mediated RAR-α activation attenuates acrylamide-induced testicular toxicity

https://www.nature.com/articles/s41598-026-50168-z
1•harry_nutsachs•41m ago•0 comments

The White House Tussle to Sway Trump on AI

https://www.wsj.com/tech/ai/inside-the-white-house-tussle-to-sway-trump-on-ai-0043d567
1•Topfi•42m ago•0 comments

Two parallel neural ectoderm progenitors contribute to the developing brain

https://www.nature.com/articles/s41593-026-02433-7
1•gone35•42m ago•0 comments

Anthropic is planning to launch its IPO in November

https://www.wsj.com/tech/ai/anthropics-ipo-will-happen-a-month-later-than-expected-a334b10e
2•mfiguiere•45m ago•1 comments

Valve has open-sourced Lepton, its tool to bring Android games to Steam

https://www.theverge.com/tech/997315/valve-has-open-sourced-lepton-its-tool-to-bring-android-game...
3•robotnikman•47m ago•0 comments

Exclusive-Anthropic sets up biology lab as it ramps AI drug program

https://finance.yahoo.com/healthcare/articles/exclusive-anthropic-quietly-sets-biology-100133604....
1•tortilla•47m 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).