Open Bug 1201868 Opened 9 years ago Updated 2 years ago

Turn on assembler optimization for OSX x86_64

Categories

(NSS :: Libraries, defect, P3)

x86_64
macOS

Tracking

(firefox43 affected)

Tracking Status
firefox43 --- affected

People

(Reporter: m_kato, Assigned: m_kato)

References

Details

Attachments

(1 file)

We still use C language code only for OSX x86_64... We should use assembler code for MPI and Intel AES. But toolchain is old on OSX, so we cannot still use AES GCM code.
asm suffix is ".s", we cannot use macro. So I add fixed copy for OSX.
Comment on attachment 8657087 [details] [diff] [review] Use assembler for some code asm suffix is ".s", so we cannot use #ifdef macro into assmbler code. So I add darwin's assembler.
Attachment #8657087 - Flags: review?(rrelyea)
Comment on attachment 8657087 [details] [diff] [review] Use assembler for some code wtc, could you review instead of Robert?
Attachment #8657087 - Flags: review?(wtc)
Makoto: could you provide either a reference or an example in the Mozilla source tree that shows the differences between the Linux and Mac OS X assemblers that your patch handles? - the need for the leading underscore in function names - the need to delete .type, .size, .section, and .previous directives Thanks!
Makoto: should we rename these files with the .S (capital S) suffix so that we can use C preprocessor macros in these files?
(In reply to Wan-Teh Chang from comment #4) > Makoto: could you provide either a reference or an example in the Mozilla > source tree that shows the differences between the Linux and Mac OS X > assemblers that your patch handles? > > - the need for the leading underscore in function names > - the need to delete .type, .size, .section, and .previous directives > > Thanks! Apple's assembler doesn't support it. Bug 333601 comment #1 and landing code are answer. (In reply to Wan-Teh Chang from comment #5) > Makoto: should we rename these files with the .S (capital S) suffix > so that we can use C preprocessor macros in these files? NSS build config doesn't support .S file for preprocessor.
See Also: → 1287216
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: