Lazarus

Using the Lazarus IDE => Options => Topic started by: sergioantonio2013 on January 05, 2014, 01:17:42 pm

Title: assembly output.
Post by: sergioantonio2013 on January 05, 2014, 01:17:42 pm
How do I get lazarus to compile to assembly code or to save the assembly code to a file when compiling a program.

I want to optimize by hand some code using mmx, and I want to see the assembly code generated by the freepascal compiler. Any help?

Thanks
Sergio Fernandez
Facebook.com/sergio.fernandez.756
Title: Re: assembly output.
Post by: Giu on January 05, 2014, 01:45:32 pm
Don't understand what do you want to do, but If related, you can use ASM code in your projects.

http://wiki.freepascal.org/Lazarus_Inline_Assembler
Title: Re: assembly output.
Post by: BigChimp on January 05, 2014, 02:01:33 pm
He wants to output the generated assembler source, i.e. not the (linked) binary/machine code.

This is possible, don't know if
Code: [Select]
fpc -h
gives enough info on this, but it should be a switch in fpc.exe

I remember some threads in the forum or perhaps the FPC mailing lists about this; you'd have to search
Title: Re: assembly output.
Post by: Martin_fr on January 05, 2014, 02:35:05 pm
specify
-al


there are various options for additional info
TinyPortal © 2005-2018