Compile to Assembly?

Ashod Nakashian ashnakash at
Sun Nov 15 06:20:05 PST 2015

On Sat, Nov 14, 2015 at 11:53 PM, Daniel <danlrobertson89 at> wrote:

> Is some workflow to compile to or inspect the assebly generated from
> an LO build? I currently re-write whatever function I'm working on in
> a separate file and compile that file (with simple conversions like
> sal_* -> non-sal) or use gdb. Just wondered if there was something
> better out there.

You can temporarily change the compiler options (see solenv/gbuild/...) to
generate assembly.

For gcc that's -S and for MSC -FA[csu] (where c gives you machine code as
well, s adds source code as comments, and u for unicode).

I'd expect this to be easier than copying the function out, but will
potentially generate much more output than you might want.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the LibreOffice mailing list