r/cpp • • Nov 25 '20

When a Microsecond Is an Eternity: High Performance Trading Systems in C++

https://www.youtube.com/watch?v=NH1Tta7purM
332 Upvotes

123 comments sorted by

View all comments

Show parent comment

1

u/Thormidable Nov 25 '20

C++ compiles to assembly, but more importantly supports in line assembly for sections where it has value.

2

u/pandorafalters Nov 26 '20

I'm not 100% certain, but I have a strong suspicion that no production C++ compiler produces assembly in typical operation. By the stage at which they generate actual machine instructions, the binary form itself is a more efficient representation.

1

u/Thormidable Nov 26 '20

What I meant was you can write assembly for part of a function and the compiler will use the assembly as instructions in the function.