frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Malicious Use of Artificial Intelligence

https://arxiv.org/abs/1802.07228
1•rasengan0•6m ago•0 comments

Sandbox-API

https://hub.docker.com/r/credkellar/sandbox-api
1•credkellarboop•8m ago•0 comments

System 3 Thinking

1•rexossbear•9m ago•0 comments

The Biology of Claude's Tokenizer

https://tokencontributions.substack.com/p/on-the-biology-of-claudes-tokenizer
1•brimtown•9m ago•0 comments

Opportunistic AI detects colorectal cancer using routine, noncontrast CT

https://radiologybusiness.com/topics/artificial-intelligence/opportunistic-ai-detects-colorectal-...
1•pseudolus•12m ago•0 comments

Show HN: Exploring the intersection of prediction markets and social media

https://www.thevidmarket.com/
1•ryanpere2298•15m ago•0 comments

Jeff-a-Sketch

https://www.drjeffdaniels.com/jeffasketch
2•cebert•19m ago•1 comments

Fossil: Private Branches

https://fossil-scm.org/home/doc/trunk/www/private.wiki
2•thunderbong•24m ago•0 comments

The case against JPEG XL

https://giannirosato.com/blog/post/case-against-jxl/
12•contact9879•26m ago•1 comments

AI is not a normal technology

https://12gramsofcarbon.com/p/ai-is-not-a-normal-technology
2•theahura•29m ago•0 comments

Ask HN: What are some privacy/security tools you wish exist, but don't yet?

3•ToriTech•29m ago•0 comments

Godfather of AI welcomes pause in development (interview with Hinton)

https://www.abc.net.au/listen/programs/radionational-breakfast/godfather-of-ai-welcomes-pause-in-...
2•ggm•30m ago•1 comments

Aviloop: YouTube's Darkest Mystery [video]

https://www.youtube.com/watch?v=DU9JCFMJp8E
1•handfuloflight•39m ago•0 comments

Writing code by hand is not an option anymore

https://rogix.dev/writing-code-by-hand-is-not-an-option-anymore
1•rogix•40m ago•2 comments

Financial literacy and investment: empirical study from Palestine Stock Exchange

https://www.frontiersin.org/journals/behavioral-economics/articles/10.3389/frbhe.2025.1444022/full
1•andsoitis•41m ago•0 comments

The Final Battle for America's Democracy

https://newrepublic.com/article/215198/2027-new-congress-final-battle-american-democracy
3•HotGarbage•44m ago•1 comments

AI Robots – When will they be in our homes

https://spectrum.ieee.org/ai-robots
1•andsoitis•45m ago•1 comments

The librarian, the car keys, and AI

https://eternallyradicalidea.com/p/the-librarian-the-car-keys-and-ai
2•emmelaich•49m ago•2 comments

Worrying about bad AI code is worrying about the wrong problem

https://matthorn.io/posts/2026-09-13-bad-ai/
1•spectraldrift•51m ago•0 comments

Wikipedia's Oberranks Incident

https://boards.4chan.org/g/thread/109811298/wikipedias-oberranks-incident
1•mostcallmeyt•54m ago•2 comments

Lawyer cites fake witnesses in murder case and blames ChatGPT

https://www.reuters.com/legal/government/chatgpt-invented-fake-police-testimony-murder-appeal-new...
5•1vuio0pswjnm7•57m ago•1 comments

Writing a better reality: The case for optimistic sci-fi

https://honisoit.com/2022/03/writing-a-better-reality-the-case-for-optimistic-sci-fi/
1•andsoitis•1h ago•1 comments

Open-Source AI and Open Models Reading List

https://www.interconnects.ai/p/open-source-ai-reading-list
13•simonpure•1h ago•0 comments

AI bubble pops – Cory Doctorow

https://www.youtube.com/watch?v=LiDUg_uylyM
7•lifeisstillgood•1h ago•0 comments

What's in a name? Naming things in OpenStreetMap

https://blog.openstreetmap.org/2026/09/13/whats-in-a-name-naming-things-in-openstreetmap/
2•HotGarbage•1h ago•0 comments

Xi pushes 'Greater BRICS' economic ties to give bloc larger global role

https://www.reuters.com/business/aerospace-defense/xi-pushes-greater-brics-economic-ties-give-blo...
3•_djo_•1h ago•1 comments

Memorable moments in Chromecast's history (2024)

https://blog.google/products-and-platforms/devices/google-nest/chromecast-history/
1•gregsadetsky•1h ago•0 comments

Apple's Dimensional Drawings

https://developer.apple.com/accessories/dimensional-drawings/
2•herbertl•1h ago•0 comments

AI Boom / Bust – Boom Boom Pow

3•wwolfson97•1h ago•1 comments

"Chilling" warning or overreaction? AI bioweapons report divides experts

https://www.science.org/content/article/chilling-warning-or-overreaction-ai-bioweapons-report-div...
4•sbulaev•1h 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).