Tag

memset

0 views collected around this technical thread.

360 Tech Engineering
360 Tech Engineering
Jan 9, 2020 · Fundamentals

Function Call Mechanics and Assembly Implementations of memcpy and memset in glibc

This article explains CPU registers, stack layout, function call conventions, and provides detailed explanations of how glibc implements memcpy and memset both in C and in low‑level assembly, including code snippets and the handling of remaining bytes.

Function CallLow-level programmingassembly
0 likes · 8 min read
Function Call Mechanics and Assembly Implementations of memcpy and memset in glibc
Baidu Intelligent Testing
Baidu Intelligent Testing
Mar 28, 2018 · Fundamentals

Common CPU Performance Pitfalls in C/C++ Programs and Their Diagnosis

The article examines common CPU performance pitfalls in C/C++ programs—such as excessive memset, inefficient string copying, improper container usage, lock contention, and heavy I/O logging—provides concrete code examples, compares profiling tools, and recommends best practices to reduce CPU consumption.

C++CPU ProfilingLocks
0 likes · 14 min read
Common CPU Performance Pitfalls in C/C++ Programs and Their Diagnosis