mirror of
https://github.com/bspeice/speice.io
synced 2024-11-05 09:38:09 -05:00
Minor tweaks
This commit is contained in:
parent
2ca50b0d24
commit
b2779ce70c
@ -121,7 +121,7 @@ variables because we know exactly how much space is needed.
|
|||||||
The `eax` register is re-used to store the final result.
|
The `eax` register is re-used to store the final result.
|
||||||
2. Because `MICROS_PER_MILLI` and `NANOS_PER_MICRO` are constants, the compiler never
|
2. Because `MICROS_PER_MILLI` and `NANOS_PER_MICRO` are constants, the compiler never
|
||||||
allocates memory, and just burns the constants into the final program.
|
allocates memory, and just burns the constants into the final program.
|
||||||
- Look for the `mov edi, 1000` and `mov ecx, 1000`.
|
- Look for the instructions `mov edi, 1000` and `mov ecx, 1000`.
|
||||||
|
|
||||||
Given this information, the compiler can efficiently lay out your memory usage so
|
Given this information, the compiler can efficiently lay out your memory usage so
|
||||||
that the program never needs to ask the kernel/allocator for memory! This example
|
that the program never needs to ask the kernel/allocator for memory! This example
|
||||||
|
Loading…
Reference in New Issue
Block a user