frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•10mo 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•10mo 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•10mo 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).

Meta Confronts Rogue AI Agents After Data Exposure

https://www.findarticles.com/meta-confronts-rogue-ai-agents-after-data-exposure/
1•tortilla•54s ago•0 comments

Can Reese's have too many pieces? The line-extension conundrum

https://www.ft.com/content/5b54115e-ff07-4063-a335-50834f6d79a3
1•petethomas•1m ago•0 comments

FreeFlow – seamless speech to text in any app

https://github.com/build-trust/freeflow/tree/main
1•glenngillen•4m ago•0 comments

Afroman wins Ohio lawsuit over music videos: 'We did it – freedom of speech '

https://www.nbcnews.com/pop-culture/pop-culture-news/afroman-sued-ohio-deputies-music-video-showi...
2•jpster•5m ago•1 comments

Meta will invest $600B in the US, focused on AI data centers

https://www.engadget.com/ai/meta-says-it-will-invest-600-billion-in-the-us-with-ai-data-centers-f...
1•mizzao•6m ago•0 comments

If you are not doing $10k per month, your problem is not what you think it is

1•shoman3003•7m ago•0 comments

No Semicolons Needed

https://terts.dev/blog/no-semicolons-needed/
1•aw1621107•9m ago•0 comments

Tiny Fish Passed an Intelligence Test That Once Distinguished Great Apes

https://www.sciencealert.com/this-tiny-fish-passed-an-intelligence-test-that-once-distinguished-g...
1•MBCook•9m ago•0 comments

New Open Source Release

1•BrainDAnderson•9m ago•0 comments

SkillNet: Create, Evaluate, and Connect AI Skills

https://arxiv.org/abs/2603.04448
1•navikohli•9m ago•0 comments

Conway's Game of Life, in real life

https://lcamtuf.substack.com/p/conways-game-of-life-in-real-life
2•surprisetalk•16m ago•0 comments

CJ: Let your Agents send you Updates

https://clawjetty.com/####
1•andes314•19m ago•0 comments

MiniMax-M2.7 Announced

https://old.reddit.com/r/LocalLLaMA/comments/1rwvn6h/minimaxm27_announced/
1•novateg•31m ago•0 comments

Show HN: Jninty – Track seeds, plants, and harvests across seasons (open source)

https://github.com/HapiCreative/jninty
1•elmadah•32m ago•0 comments

Tool to visualize CVE attack chains

https://vulnpath.vercel.app/app
2•yongsanghoon•34m ago•1 comments

Show HN: Ashlr AO – AI agent orchestration dashboard (for sale, $9.5K)

https://ashlrao.com
1•masonwyatt23•34m ago•0 comments

Vector Search with LLMs [video]

https://www.youtube.com/watch?v=YDdKiQNw80c
1•tartoran•36m ago•0 comments

Share of Labour Compensation in GDP for United States (1950-2023)

https://fred.stlouisfed.org/series/LABSHPUSA156NRUG
3•greyface-•38m ago•0 comments

Mozilla to launch free built-in VPN in upcoming Firefox 149

https://cyberinsider.com/mozilla-to-launch-free-built-in-vpn-in-upcoming-firefox-149/
8•adrianwaj•40m ago•1 comments

Reddit New Post 4

https://old.reddit.com/r/PisequaltoNP/comments/1rxpkj9/pnp_a_rigorous_proof/
1•KaoruAK•42m ago•0 comments

Costa Rica makes history with strict, nationwide ban on hunting

https://www.thecooldown.com/outdoors/costa-rica-hunting-ban-wildlife-protection/
5•thunderbong•49m ago•1 comments

Fed fake paper to NotebookLM and ask two AI podcast hosts what it means for them

https://lluminate.substack.com/p/the-inevitability-of-love-between
2•bmedwar•49m ago•1 comments

How to Correct the Financial Times at AWS (So Far)

https://www.lastweekinaws.com/blog/2-ways-to-correct-the-financial-times-at-aws-so-far/
3•shscs911•50m ago•0 comments

Identity-first containment for autonomous agent workloads (SPIFFE and Istio lab) [pdf]

https://github.com/computeaholic/threadforge-agent-containment-lab/blob/main/docs/Agent-Containme...
2•computeaholic•51m ago•0 comments

Which AI model is best for Laravel?

https://laravel.com/blog/which-ai-model-is-best-for-laravel
2•sawirricardo•53m ago•0 comments

Agent Talks to Agent

https://medium.com/@yingjunwu/agent-to-agent-communication-is-broken-why-an-email-like-inbox-mode...
4•AnneWodell•58m ago•0 comments

Rotating the Space: On LLMs as a Medium for Thought

https://sbgeoaiphd.github.io/rotating_the_space/
3•andruc•1h ago•0 comments

Vintage FUD: when Microsoft declared WebGL harmful

https://twitter.com/mrdoob/status/2034374035862413592
3•bpierre•1h ago•0 comments

12 years later, Hidden Path releases first DLC for Defense Grid 2

https://store.steampowered.com/app/1080920/Defense_Grid_2__Aftermath/
1•HardwareLust•1h ago•1 comments

Idea Killshot: stress-test your startup idea before the market does

https://hnshah.github.io/idea-killshot/
2•oatis-ai•1h ago•1 comments