malloc

ˈmælɒk
Translation Definition
NEW

Translation of malloc from English into Chinese

Other

1.

technology

TECH.US
C library subroutine for dynamic memory allocation
TECH.US
malloc函数 malloc 内存分配函数
  • Malloc is used to allocate memory in C.在C语言中,malloc函数用于分配内存。
2.

memory allocation

TECH.
allocates a block of memory in the heap
TECH.
malloc 函数 malloc(内存分配) malloc(分配内存)
  • Malloc is used to allocate memory for arrays.malloc 函数 用于为数组分配内存。
Add a suggestion |

Examples of malloc in a sentence

  • Developers often use malloc in their code.
  • Malloc is essential for dynamic memory management in C.
  • Developers often use malloc to handle memory allocation efficiently.

Translations of "malloc" in Context ordered by category and frequency

malloc

Managing memory with malloc () can be pretty daunting for programs that have long-running storage they need to keep around.

对于那些需要保持长期存储的程序使用malloc() 来管理内存可能会非常令人失望。

On UNIX systems, you can now use your allocator in place of your system malloc() by doing this

在UNIX系统中,现在您可以用您的分配程序来取代系统的malloc(),做法如下

Explore more translations and examples on Reverso Context

malloc: Examples and translations in context

In C pointers can, of course, be null, but if you wanted a simple integer to be null, you'd have to first box it up into an object allocated by malloc on the heap.

在 C 中指针当然也可以为空,但是如果你想要一个简单的整型为空,你得首先把它装箱成一个在堆上用malloc 分配内存的对象。

Not only does our memory manager have shortcomings, there are many shortcomings of malloc()-based memory management that remain no matter which allocator you use.

不只是我们的内存管理器有缺点,基于malloc()的内存管理器仍然也有很多缺点,不管您使用的是哪个分配程序。

Unlike in C, however, objects with trivial default constructors cannot be created by simply reinterpreting suitably aligned storage, such as memory allocated with std::malloc: placement-new is required to formally introduce a new object and avoid potential undefined behavior. [edit] Defect reports

然而不同于 C 中 ,拥有平凡默认构造函数的对象不能通过简单地转译对齐的存储,例如以 std : : malloc 分配的存储创建:要求布置 new 以形式上引入新对象 并避免潜在的未定义行为。

Rather than using malloc() and friends to allocate enough memory for a given object, you ask APR to allocate the memory from a memory pool.

不是使用 malloc ( ) 及其亲友来分配内存, 而是调用 APR 库函数从内存池中分配内存.

Inside the non-Java code, C's malloc() family of functions might be called to allocate storage, and unless you call free(), that storage will not be released, causing a memory leak.

在非Java代码内部,也许能调用C的malloc ( ) 系列函数,用它分配存储空间。 而且除非调用了free ( ) ,否则存储空间不会得到释放,从而造成内存"漏洞"的出现。

Still, banishing malloc requires coding discipline and some design compromises, a few of which we previously noted in discussing the JSON parser.

尽管如此,消除malloc需要编码规则和一些设计上的妥协,我们前面在讨论JSON解析器时已经提到了一些。

Browse the dictionary entries starting with “m”:
Why use Reverso English-Chinese Dictionary to learn "malloc"?
  • Find accurate translations for "malloc" in Chinese

    Explore various translations of "malloc" sorted by frequency and relevance to find the perfect match for your context.

  • Browse countless real-life examples

    Understand the exact meaning of "malloc" and learn how to use it correctly in any context. Examples come from millions of authentic texts: movie dialogues, news articles, official documents, and more.

  • Listen to pronunciation

    Hear how "malloc" is pronounced by native speakers and improve your oral skills.

  • Discover expressions and idioms with "malloc" in English

    Dive into our dictionary's treasure trove of phrases and expressions containing "malloc" to grow your vocabulary including new entries from the Reverso Collaborative Dictionary.

  • Create your vocabulary list with ease

    Click the star icon to save "malloc" to your favorites.

  • Practice with flashcards

    Memorize your words with interactive flashcards containing audio and examples.

English-Chinese translations you can rely on
Find virtually anything

Over 500,000 entries, 2 million translations and 10 million examples in context

Trusted by 70M users

including students, language teachers, and linguistic experts

Exceptional 4.7 app rating

with 250,000+ reviews on App Store and Play Store