Page MenuHomeFreeBSD

amd64 csu: microoptimize startup
ClosedPublic

Authored by kib on Mar 3 2025, 12:02 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 2, 8:37 AM
Unknown Object (File)
Tue, Nov 25, 6:38 PM
Unknown Object (File)
Tue, Nov 25, 1:21 PM
Unknown Object (File)
Wed, Nov 19, 11:35 PM
Unknown Object (File)
Mon, Nov 10, 9:43 PM
Unknown Object (File)
Oct 25 2025, 3:14 PM
Unknown Object (File)
Oct 23 2025, 6:49 PM
Unknown Object (File)
Oct 19 2025, 3:15 AM
Subscribers

Details

Summary

Reorder operations to reduce moving the values among registers.
Use the LEA instruction to combine arithmetic with the moves.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Mar 3 2025, 12:02 AM

Correct the offset of env.

lib/csu/amd64/crt1_s.S
53

What is *apl?

55

Shouldn't the comment say + 2?

kib marked 2 inline comments as done.

Fix typos in comments.

This revision is now accepted and ready to land.Mar 3 2025, 11:22 AM
This revision was automatically updated to reflect the committed changes.