public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* malloc for large allocations
       [not found] <862020245.2697591.1677774906070.ref@mail.yahoo.com>
@ 2023-03-02 16:35 ` bernardwidynski
  2023-03-02 16:37   ` Jonathan Wakely
  2023-03-02 16:39   ` Xi Ruoyao
  0 siblings, 2 replies; 3+ messages in thread
From: bernardwidynski @ 2023-03-02 16:35 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

I have a computer with 128 gigabytes of memory.
However, when I try to malloc memory, it only works if I malloc less than 64 gigabytes.
Is there some parameter I could change that would allow me to malloc more than 64 gigabytes.
Thanks,
Bernard Widynski

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: malloc for large allocations
  2023-03-02 16:35 ` malloc for large allocations bernardwidynski
@ 2023-03-02 16:37   ` Jonathan Wakely
  2023-03-02 16:39   ` Xi Ruoyao
  1 sibling, 0 replies; 3+ messages in thread
From: Jonathan Wakely @ 2023-03-02 16:37 UTC (permalink / raw)
  To: bernardwidynski; +Cc: gcc-help

On Thu, 2 Mar 2023 at 16:36, bernardwidynski--- via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> I have a computer with 128 gigabytes of memory.
> However, when I try to malloc memory, it only works if I malloc less than 64 gigabytes.
> Is there some parameter I could change that would allow me to malloc more than 64 gigabytes.

This has nothing to do with GCC. malloc is provided by the C library,
not by GCC.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: malloc for large allocations
  2023-03-02 16:35 ` malloc for large allocations bernardwidynski
  2023-03-02 16:37   ` Jonathan Wakely
@ 2023-03-02 16:39   ` Xi Ruoyao
  1 sibling, 0 replies; 3+ messages in thread
From: Xi Ruoyao @ 2023-03-02 16:39 UTC (permalink / raw)
  To: bernardwidynski; +Cc: gcc-help

On Thu, 2023-03-02 at 16:35 +0000, bernardwidynski--- via Gcc-help wrote:
> I have a computer with 128 gigabytes of memory.
> However, when I try to malloc memory, it only works if I malloc less than 64 gigabytes.
> Is there some parameter I could change that would allow me to malloc more than 64 gigabytes.

malloc is not provided by GCC.  Ask the developer of your libc.

-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-02 16:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <862020245.2697591.1677774906070.ref@mail.yahoo.com>
2023-03-02 16:35 ` malloc for large allocations bernardwidynski
2023-03-02 16:37   ` Jonathan Wakely
2023-03-02 16:39   ` Xi Ruoyao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).