|
|
Log in / Subscribe / Register

Generate assembly language directly with -S

Generate assembly language directly with -S

Posted May 25, 2026 16:53 UTC (Mon) by jreiser (subscriber, #11027)
In reply to: Thought I was the only one by gmprice
Parent article: Dirk and Linus discuss AI and kernel development

The -S command-line flag to some compilers (generate assembly language text instead of binary instructions) is enough if you have a text editor. (You might also learn some exotica that the compiler performs behind your back!)


to post comments

Generate assembly language directly with -S

Posted May 26, 2026 14:01 UTC (Tue) by willy (subscriber, #9762) [Link]

The kernel build system supports "make fs/buffer.s" to generate the assembly rather than the fs/buffer.o file that would normally be built. It's a little more symbolic than running objdump -S but doesn't tell you how many bytes each insn is compiled to. It's sometimes better for a before/after comparison of a code change.

Generate assembly language directly with -S

Posted Jun 4, 2026 8:22 UTC (Thu) by renox (guest, #23785) [Link]

Generating the assembly language isn't the hard part: finding where your code is when it has been inlined/mixed in the optimised build *is* the hard part.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds