[openssl-users] PerlASM for x64

Richard Levitte levitte at openssl.org
Mon Dec 24 18:08:41 UTC 2018

In message <3fc4d543-d71a-8c22-566a-d902c4f7da03 at gmail.com> on Mon, 24 Dec 2018 13:17:51 +0100, Gisle Vanem <gisle.vanem at gmail.com> said:

> Richard Levitte wrote:
> >> I experimented some more. I figured the "auto" does not work.
> >> But this works:
> >>    perl crypto\aes\asm\aesni-x86_64.pl nasm > tmp-file.s
> >>    diff tmp-file.s crypto\aes\aesni-x86_64.asm
> >>
> >> No diffs.
> >>
> >> Why does the the generation of .asm-files be so damn hard to
> >> figure out? Some cmd-line help to show what "auto" does would
> >> be nice.
> > The "auto" flavor takes note of the output file extension.  .asm vs .s
> > in this case.
> Thank, but it was a typo in my 1st email. The correct command was
> with a redirect:
>   set ASM=nasm
>   f:\util\StrawberryPerl\perl\bin\perl crypto\aes\asm\aesni-x86_64.pl
>   auto > tmp-file.s

That isn't a correct use of the script.  All of the assembler perl
scripts expect the output file as last argument, and the x86_64 ones
do look at the output file and determines that if the extension is
'.asm', nasm assembler is expected, otherwise you will get gas
assembler.  So if you redirect, the result is, mildly put, undefined.

Thank you, though...  it is time the assembler stuff gets documented,
and I think I'm in a fairly good position to do so.  I will not
promise that it will happen fast, but it is in my backlog.


Richard Levitte         levitte at openssl.org
OpenSSL Project         http://www.openssl.org/~levitte/

More information about the openssl-users mailing list