-a shouldn't disable optimisations at all. It just dumps the
intermediate assembly language into .s files.
Gareth aka. Kit
On 19/07/2020 04:22, Alexander Grotewohl wrote:
would -a disable optimizations? i guess it'd depend on the intended
use of the listings it generated
--
Alexander Grotewohl
https://dcclost.com
------------------------------------------------------------------------
*From:* fpc-devel <fpc-devel-boun...@lists.freepascal.org> on behalf
of J. Gareth Moreton <gar...@moreton-family.com>
*Sent:* Saturday, July 18, 2020 11:09:29 PM
*To:* FPC developers' list <fpc-devel@lists.freepascal.org>
*Subject:* [fpc-devel] Binary size discrepancy with -a
Hi everyone,
I've noticed something a bit weird with the Free Pascal Compiler when
you use the the -a option to dump the compiled assembly files... the
resultant binaries are sometimes smaller. I recently tried it with
Lazarus under x86_64-win64 (using "make distclean all install" with
FPCOPT):
(-O4 -OoCONSTPROP)
241,010,289 bytes - lazarus.exe
(-a -O4 -OoCONSTPROP)
235,655,062 bytes - lazarus.exe
Anyone else noticed this? Logically, shoudn't the EXE files be
completely identical?
Gareth aka. Kit
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel