frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

"No KYC" Crypto Cards Tap Corporate Issuing Loopholes

https://fintechbusinessweekly.substack.com/p/no-kyc-crypto-cards-tap-corporate
1•toomuchtodo•41s ago•0 comments

Estimating the Economic Value of Zoning Reform

https://www.aeaweb.org/articles?id=10.1257/pol.20230542
1•marojejian•4m ago•1 comments

Show HN: AI agents gives its worst answers when you're overwhelmed

https://github.com/softcane/human-state-skills
1•pradeep1177•4m ago•0 comments

Show HN: Summarize any page into a pod episode

https://thedaily.fm/docs/page-to-pod
1•carimura•5m ago•1 comments

The Antibacterial Action of Cultures of a Penicillium (1929) [pdf]

https://pmc.ncbi.nlm.nih.gov/articles/PMC2048009/pdf/brjexppathol00255-0037.pdf
1•georgecmu•8m ago•0 comments

Show HN: What's Your AI Debt Score? Roast My Code – No AI, Just Regex

1•piggydev•9m ago•0 comments

Software Factories, Light and Dark

https://addyosmani.com/blog/software-factories/
1•markgavalda•9m ago•0 comments

The Em Dash Report – who started punctuating like a language model

https://emdash.report/
2•MattIPv4•10m ago•0 comments

Fiddler in 2026

https://textslashplain.com/2026/08/05/fiddler-in-2026/
1•speckx•10m ago•0 comments

Apple's 'Private Relay' Is Exposing Users' Real IP Addresses

https://www.404media.co/apples-private-relay-is-exposing-users-real-ip-addresses/
4•spenvo•11m ago•1 comments

HugSQL

https://hugsql.org/
1•peter_d_sherman•11m ago•0 comments

Major Wall Street hedge funds targeted in attempted cyberattacks

https://www.reuters.com/legal/government/major-wall-street-hedge-funds-targeted-attempted-cyberat...
3•giuliomagnifico•11m ago•0 comments

Vibe-Coding Gone Wrong: Debugging AI-Generated Code

https://magill.dev/post/vibe-coding-gone-wrong-debugging-ai-generated-code
2•andymagill•15m ago•0 comments

Why Top CEOs Earn Big Paychecks (2024)

https://marginalrevolution.com/marginalrevolution/2024/08/why-top-ceos-earn-big-paychecks.html
1•tosh•15m ago•0 comments

Is Your Business Ready for the EU's Lawyers?

https://iii.dev/blog/is-your-business-ready-for-the-eus-lawyers/
1•appplemac•16m ago•0 comments

Show HN: Lucidos, a local AI OS that keeps the apps you describe running

https://github.com/lucidos-dev/lucidos
1•kennethtiller•16m ago•1 comments

An Apology for Idle Machines by ChatGPT

https://brucesterling.tumblr.com/post/824124902956318720
1•speckx•17m ago•0 comments

Show HN: LiminalML – Study ML or SWE at interview depth, grounded in your resume

https://liminalml.com
1•OliverPerrin•18m ago•1 comments

Consumers React to DuckDuckGo's New Sunglasses

https://www.instagram.com/p/DbbBAQMDRTj/
2•bookofjoe•20m ago•1 comments

Show HN: ZeroCloudPDF Sign

https://zerocloudpdf.com/sign-pdf
2•HozeKan•24m ago•1 comments

Morality filters have arrived, dear peasants

https://www.dedoimedo.com/life/morality-filters.html
1•HotGarbage•24m ago•1 comments

AI Has a Default Personality. Did You Choose It?

https://botbot.com/blog/default-personality
1•mmayernick•24m ago•0 comments

Anthropic Is Building Its Own Chip

https://www.businessinsider.com/anthropic-in-house-silicon-chip-team-claude-2026-8
3•closetheloopdev•25m ago•2 comments

American Dynamism Film Series

https://www.a16z.news/p/american-dynamism-film-series
3•jger15•25m ago•0 comments

Show HN: A Minesweeper variant with weighted mines, always solvable by logic

https://grimlings.co/
1•chernikovalexey•26m ago•0 comments

Senate OS Age Requirement Bill Introduced

https://www.kim.senate.gov/press_release/senators-kim-schiff-lummis-barrasso-introduce-bill-to-pr...
3•Rooster61•27m ago•1 comments

Fnalysis

https://zntrphy.fnalysis.com/en/
1•cadawallet•28m ago•0 comments

Show HN: BoundaryBench – benchmarking coding agents under real sandbox policy

https://github.com/boundary-bench/boundary-bench
1•_orcaman_•31m ago•0 comments

Sandboxing

https://zed.dev/blog/sandboxing
2•minimaxir•32m ago•2 comments

Did medieval people love their children?

https://worksinprogress.co/issue/did-medieval-people-love-their-children/
2•paulpauper•33m 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).