Recent

Author Topic: assembly output.  (Read 4534 times)

sergioantonio2013

  • New Member
  • *
  • Posts: 22
assembly output.
« 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
« Last Edit: January 05, 2014, 01:24:19 pm by sergioantonio2013 »

Giu

  • Full Member
  • ***
  • Posts: 131
Re: assembly output.
« Reply #1 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

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: assembly output.
« Reply #2 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
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9754
  • Debugger - SynEdit - and more
    • wiki
Re: assembly output.
« Reply #3 on: January 05, 2014, 02:35:05 pm »
specify
-al


there are various options for additional info

 

TinyPortal © 2005-2018